ImageImportJob.fromJson constructor
ImageImportJob.fromJson(
- Map json_
Implementation
ImageImportJob.fromJson(core.Map json_)
: this(
cloudStorageUri: json_.containsKey('cloudStorageUri')
? json_['cloudStorageUri'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
createdResources: json_.containsKey('createdResources')
? (json_['createdResources'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
diskImageTargetDetails: json_.containsKey('diskImageTargetDetails')
? DiskImageTargetDetails.fromJson(json_['diskImageTargetDetails']
as core.Map<core.String, core.dynamic>)
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
errors: json_.containsKey('errors')
? (json_['errors'] as core.List)
.map((value) => Status.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
steps: json_.containsKey('steps')
? (json_['steps'] as core.List)
.map((value) => ImageImportStep.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
warnings: json_.containsKey('warnings')
? (json_['warnings'] as core.List)
.map((value) => MigrationWarning.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);