Release.fromJson constructor
Release.fromJson(
- Map json_
Implementation
Release.fromJson(core.Map json_)
: this(
abandoned: json_.containsKey('abandoned')
? json_['abandoned'] as core.bool
: null,
annotations: json_.containsKey('annotations')
? (json_['annotations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
buildArtifacts: json_.containsKey('buildArtifacts')
? (json_['buildArtifacts'] as core.List)
.map((value) => BuildArtifact.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
condition: json_.containsKey('condition')
? ReleaseCondition.fromJson(
json_['condition'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
customTargetTypeSnapshots:
json_.containsKey('customTargetTypeSnapshots')
? (json_['customTargetTypeSnapshots'] as core.List)
.map((value) => CustomTargetType.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
deliveryPipelineSnapshot:
json_.containsKey('deliveryPipelineSnapshot')
? DeliveryPipeline.fromJson(json_['deliveryPipelineSnapshot']
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,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
renderEndTime: json_.containsKey('renderEndTime')
? json_['renderEndTime'] as core.String
: null,
renderStartTime: json_.containsKey('renderStartTime')
? json_['renderStartTime'] as core.String
: null,
renderState: json_.containsKey('renderState')
? json_['renderState'] as core.String
: null,
skaffoldConfigPath: json_.containsKey('skaffoldConfigPath')
? json_['skaffoldConfigPath'] as core.String
: null,
skaffoldConfigUri: json_.containsKey('skaffoldConfigUri')
? json_['skaffoldConfigUri'] as core.String
: null,
skaffoldVersion: json_.containsKey('skaffoldVersion')
? json_['skaffoldVersion'] as core.String
: null,
targetArtifacts: json_.containsKey('targetArtifacts')
? (json_['targetArtifacts']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
TargetArtifact.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
targetRenders: json_.containsKey('targetRenders')
? (json_['targetRenders'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
TargetRender.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
targetSnapshots: json_.containsKey('targetSnapshots')
? (json_['targetSnapshots'] as core.List)
.map((value) => Target.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
);