Job.fromJson constructor
Job.fromJson(
- Map json_
Implementation
Job.fromJson(core.Map json_)
: this(
clientRequestId: json_.containsKey('clientRequestId')
? json_['clientRequestId'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
createdFromSnapshotId: json_.containsKey('createdFromSnapshotId')
? json_['createdFromSnapshotId'] as core.String
: null,
currentState: json_.containsKey('currentState')
? json_['currentState'] as core.String
: null,
currentStateTime: json_.containsKey('currentStateTime')
? json_['currentStateTime'] as core.String
: null,
environment: json_.containsKey('environment')
? Environment.fromJson(
json_['environment'] as core.Map<core.String, core.dynamic>)
: null,
executionInfo: json_.containsKey('executionInfo')
? JobExecutionInfo.fromJson(
json_['executionInfo'] as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
jobMetadata: json_.containsKey('jobMetadata')
? JobMetadata.fromJson(
json_['jobMetadata'] as core.Map<core.String, core.dynamic>)
: 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,
location: json_.containsKey('location')
? json_['location'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
pipelineDescription: json_.containsKey('pipelineDescription')
? PipelineDescription.fromJson(json_['pipelineDescription']
as core.Map<core.String, core.dynamic>)
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
replaceJobId: json_.containsKey('replaceJobId')
? json_['replaceJobId'] as core.String
: null,
replacedByJobId: json_.containsKey('replacedByJobId')
? json_['replacedByJobId'] as core.String
: null,
requestedState: json_.containsKey('requestedState')
? json_['requestedState'] as core.String
: null,
runtimeUpdatableParams: json_.containsKey('runtimeUpdatableParams')
? RuntimeUpdatableParams.fromJson(json_['runtimeUpdatableParams']
as core.Map<core.String, core.dynamic>)
: null,
satisfiesPzi: json_.containsKey('satisfiesPzi')
? json_['satisfiesPzi'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
stageStates: json_.containsKey('stageStates')
? (json_['stageStates'] as core.List)
.map((value) => ExecutionStageState.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
steps: json_.containsKey('steps')
? (json_['steps'] as core.List)
.map((value) => Step.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
stepsLocation: json_.containsKey('stepsLocation')
? json_['stepsLocation'] as core.String
: null,
tempFiles: json_.containsKey('tempFiles')
? (json_['tempFiles'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
transformNameMapping: json_.containsKey('transformNameMapping')
? (json_['transformNameMapping']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);