28 lines
895 B
Dart
28 lines
895 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|||
|
|
|
||
|
|
part of 'aggregated_node_status.dart';
|
||
|
|
|
||
|
|
// **************************************************************************
|
||
|
|
// JsonSerializableGenerator
|
||
|
|
// **************************************************************************
|
||
|
|
|
||
|
|
_AggregatedNodeStatus _$AggregatedNodeStatusFromJson(
|
||
|
|
Map<String, dynamic> json,
|
||
|
|
) => _AggregatedNodeStatus(
|
||
|
|
node: RemoteNode.fromJson(json['node'] as Map<String, dynamic>),
|
||
|
|
services:
|
||
|
|
(json['services'] as List<dynamic>?)
|
||
|
|
?.map((e) => Service.fromJson(e as Map<String, dynamic>))
|
||
|
|
.toList() ??
|
||
|
|
const <Service>[],
|
||
|
|
error: json['error'] as String?,
|
||
|
|
);
|
||
|
|
|
||
|
|
Map<String, dynamic> _$AggregatedNodeStatusToJson(
|
||
|
|
_AggregatedNodeStatus instance,
|
||
|
|
) => <String, dynamic>{
|
||
|
|
'node': instance.node.toJson(),
|
||
|
|
'services': instance.services.map((e) => e.toJson()).toList(),
|
||
|
|
'error': instance.error,
|
||
|
|
};
|