Rollout.fromJson constructor
Rollout.fromJson(
- Map json_
Implementation
Rollout.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,
approvalState: json_.containsKey('approvalState')
? json_['approvalState'] as core.String
: null,
approveTime: json_.containsKey('approveTime')
? json_['approveTime'] as core.String
: null,
controllerRollout: json_.containsKey('controllerRollout')
? json_['controllerRollout'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deployEndTime: json_.containsKey('deployEndTime')
? json_['deployEndTime'] as core.String
: null,
deployFailureCause: json_.containsKey('deployFailureCause')
? json_['deployFailureCause'] as core.String
: null,
deployStartTime: json_.containsKey('deployStartTime')
? json_['deployStartTime'] as core.String
: null,
deployingBuild: json_.containsKey('deployingBuild')
? json_['deployingBuild'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
enqueueTime: json_.containsKey('enqueueTime')
? json_['enqueueTime'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
failureReason: json_.containsKey('failureReason')
? json_['failureReason'] 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,
metadata: json_.containsKey('metadata')
? Metadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
phases: json_.containsKey('phases')
? (json_['phases'] as core.List)
.map((value) => Phase.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
rollbackOfRollout: json_.containsKey('rollbackOfRollout')
? json_['rollbackOfRollout'] as core.String
: null,
rolledBackByRollouts: json_.containsKey('rolledBackByRollouts')
? (json_['rolledBackByRollouts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
targetId: json_.containsKey('targetId')
? json_['targetId'] as core.String
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
);