initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// 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,
|
||||
};
|
||||
Reference in New Issue
Block a user