GoogleCloudRunV2Task.fromJson constructor
GoogleCloudRunV2Task.fromJson(
- Map json_
Implementation
GoogleCloudRunV2Task.fromJson(core.Map json_)
: this(
annotations: json_.containsKey('annotations')
? (json_['annotations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
completionTime: json_.containsKey('completionTime')
? json_['completionTime'] as core.String
: null,
conditions: json_.containsKey('conditions')
? (json_['conditions'] as core.List)
.map((value) => GoogleCloudRunV2Condition.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
containers: json_.containsKey('containers')
? (json_['containers'] as core.List)
.map((value) => GoogleCloudRunV2Container.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deleteTime: json_.containsKey('deleteTime')
? json_['deleteTime'] as core.String
: null,
encryptionKey: json_.containsKey('encryptionKey')
? json_['encryptionKey'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
execution: json_.containsKey('execution')
? json_['execution'] as core.String
: null,
executionEnvironment: json_.containsKey('executionEnvironment')
? json_['executionEnvironment'] as core.String
: null,
expireTime: json_.containsKey('expireTime')
? json_['expireTime'] as core.String
: null,
generation: json_.containsKey('generation')
? json_['generation'] as core.String
: null,
index: json_.containsKey('index') ? json_['index'] as core.int : null,
job: json_.containsKey('job') ? json_['job'] 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,
lastAttemptResult: json_.containsKey('lastAttemptResult')
? GoogleCloudRunV2TaskAttemptResult.fromJson(
json_['lastAttemptResult']
as core.Map<core.String, core.dynamic>)
: null,
logUri: json_.containsKey('logUri')
? json_['logUri'] as core.String
: null,
maxRetries: json_.containsKey('maxRetries')
? json_['maxRetries'] as core.int
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
observedGeneration: json_.containsKey('observedGeneration')
? json_['observedGeneration'] as core.String
: null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
retried: json_.containsKey('retried')
? json_['retried'] as core.int
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
scheduledTime: json_.containsKey('scheduledTime')
? json_['scheduledTime'] as core.String
: null,
serviceAccount: json_.containsKey('serviceAccount')
? json_['serviceAccount'] as core.String
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
timeout: json_.containsKey('timeout')
? json_['timeout'] as core.String
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
volumes: json_.containsKey('volumes')
? (json_['volumes'] as core.List)
.map((value) => GoogleCloudRunV2Volume.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
vpcAccess: json_.containsKey('vpcAccess')
? GoogleCloudRunV2VpcAccess.fromJson(
json_['vpcAccess'] as core.Map<core.String, core.dynamic>)
: null,
);