Target.fromJson constructor
Target.fromJson(
- Map json_
Implementation
Target.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,
anthosCluster: json_.containsKey('anthosCluster')
? AnthosCluster.fromJson(
json_['anthosCluster'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
customTarget: json_.containsKey('customTarget')
? CustomTarget.fromJson(
json_['customTarget'] as core.Map<core.String, core.dynamic>)
: null,
deployParameters: json_.containsKey('deployParameters')
? (json_['deployParameters']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
executionConfigs: json_.containsKey('executionConfigs')
? (json_['executionConfigs'] as core.List)
.map((value) => ExecutionConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
gke: json_.containsKey('gke')
? GkeCluster.fromJson(
json_['gke'] 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,
multiTarget: json_.containsKey('multiTarget')
? MultiTarget.fromJson(
json_['multiTarget'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
requireApproval: json_.containsKey('requireApproval')
? json_['requireApproval'] as core.bool
: null,
run: json_.containsKey('run')
? CloudRunLocation.fromJson(
json_['run'] as core.Map<core.String, core.dynamic>)
: null,
targetId: json_.containsKey('targetId')
? json_['targetId'] as core.String
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);