Job.fromJson constructor
Job.fromJson(
- Map _json
Implementation
Job.fromJson(core.Map _json)
: this(
config: _json.containsKey('config')
? JobConfig.fromJson(
_json['config'] as core.Map<core.String, core.dynamic>)
: null,
createTime: _json.containsKey('createTime')
? _json['createTime'] as core.String
: null,
endTime: _json.containsKey('endTime')
? _json['endTime'] as core.String
: null,
failureDetails: _json.containsKey('failureDetails')
? (_json['failureDetails'] as core.List)
.map<FailureDetail>((value) => FailureDetail.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
failureReason: _json.containsKey('failureReason')
? _json['failureReason'] as core.String
: null,
inputUri: _json.containsKey('inputUri')
? _json['inputUri'] as core.String
: null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
originUri: _json.containsKey('originUri')
? OriginUri.fromJson(
_json['originUri'] as core.Map<core.String, core.dynamic>)
: null,
outputUri: _json.containsKey('outputUri')
? _json['outputUri'] as core.String
: null,
priority: _json.containsKey('priority')
? _json['priority'] as core.int
: null,
progress: _json.containsKey('progress')
? Progress.fromJson(
_json['progress'] as core.Map<core.String, core.dynamic>)
: null,
startTime: _json.containsKey('startTime')
? _json['startTime'] as core.String
: null,
state:
_json.containsKey('state') ? _json['state'] as core.String : null,
templateId: _json.containsKey('templateId')
? _json['templateId'] as core.String
: null,
ttlAfterCompletionDays: _json.containsKey('ttlAfterCompletionDays')
? _json['ttlAfterCompletionDays'] as core.int
: null,
);