Backup.fromJson constructor
Backup.fromJson(
- Map json_
Implementation
Backup.fromJson(core.Map json_)
: this(
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
restoringServices: json_.containsKey('restoringServices')
? (json_['restoringServices'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
serviceRevision: json_.containsKey('serviceRevision')
? Service.fromJson(json_['serviceRevision']
as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
);