Job.fromJson constructor
Job.fromJson(
- Map json_
Implementation
Job.fromJson(core.Map json_)
: this(
batchModePriority: json_.containsKey('batchModePriority')
? json_['batchModePriority'] as core.int
: null,
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,
error: json_.containsKey('error')
? Status.fromJson(
json_['error'] as core.Map<core.String, core.dynamic>)
: null,
inputUri: json_.containsKey('inputUri')
? json_['inputUri'] as core.String
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
optimization: json_.containsKey('optimization')
? json_['optimization'] as core.String
: null,
outputUri: json_.containsKey('outputUri')
? json_['outputUri'] as core.String
: 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,
);