30 lines
1.1 KiB
Dart
30 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'node_info.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_NodeInfo _$NodeInfoFromJson(Map<String, dynamic> json) => _NodeInfo(
|
|
hostname: json['hostname'] as String,
|
|
description: json['description'] as String?,
|
|
updateHistory:
|
|
(json['update_history'] as List<dynamic>?)
|
|
?.map((e) => UpdateRecord.fromJson(e as Map<String, dynamic>))
|
|
.toList() ??
|
|
const <UpdateRecord>[],
|
|
backup: BackupConfig.fromJson(json['backup'] as Map<String, dynamic>),
|
|
resticPasswordSet: json['restic_password_set'] as bool? ?? false,
|
|
resticPassword: json['restic_password'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$NodeInfoToJson(_NodeInfo instance) => <String, dynamic>{
|
|
'hostname': instance.hostname,
|
|
'description': instance.description,
|
|
'update_history': instance.updateHistory.map((e) => e.toJson()).toList(),
|
|
'backup': instance.backup.toJson(),
|
|
'restic_password_set': instance.resticPasswordSet,
|
|
'restic_password': ?instance.resticPassword,
|
|
};
|