Job.fromJson constructor
Job.fromJson(
- Map json_
Implementation
Job.fromJson(core.Map json_)
: this(
allocationPolicy: json_.containsKey('allocationPolicy')
? AllocationPolicy.fromJson(json_['allocationPolicy']
as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] 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,
logsPolicy: json_.containsKey('logsPolicy')
? LogsPolicy.fromJson(
json_['logsPolicy'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notifications: json_.containsKey('notifications')
? (json_['notifications'] as core.List)
.map((value) => JobNotification.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
priority: json_.containsKey('priority')
? json_['priority'] as core.String
: null,
status: json_.containsKey('status')
? JobStatus.fromJson(
json_['status'] as core.Map<core.String, core.dynamic>)
: null,
taskGroups: json_.containsKey('taskGroups')
? (json_['taskGroups'] as core.List)
.map((value) => TaskGroup.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);