TaskStatus.fromJson constructor
TaskStatus.fromJson(
- Map json_
Implementation
TaskStatus.fromJson(core.Map json_)
: this(
completionTime: json_.containsKey('completionTime')
? json_['completionTime'] as core.String
: null,
conditions: json_.containsKey('conditions')
? (json_['conditions'] as core.List)
.map((value) => GoogleCloudRunV1Condition.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
index: json_.containsKey('index') ? json_['index'] as core.int : null,
lastAttemptResult: json_.containsKey('lastAttemptResult')
? TaskAttemptResult.fromJson(json_['lastAttemptResult']
as core.Map<core.String, core.dynamic>)
: null,
logUri: json_.containsKey('logUri')
? json_['logUri'] as core.String
: null,
observedGeneration: json_.containsKey('observedGeneration')
? json_['observedGeneration'] as core.int
: null,
retried: json_.containsKey('retried')
? json_['retried'] as core.int
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
);