ReplicationCycle.fromJson constructor
ReplicationCycle.fromJson(
- Map json_
Implementation
ReplicationCycle.fromJson(core.Map json_)
: this(
cycleNumber: json_.containsKey('cycleNumber')
? json_['cycleNumber'] as core.int
: null,
endTime: json_.containsKey('endTime')
? json_['endTime'] as core.String
: null,
error: json_.containsKey('error')
? Status.fromJson(
json_['error'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
progressPercent: json_.containsKey('progressPercent')
? json_['progressPercent'] as core.int
: null,
startTime: json_.containsKey('startTime')
? json_['startTime'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
steps: json_.containsKey('steps')
? (json_['steps'] as core.List)
.map((value) => CycleStep.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
totalPauseDuration: json_.containsKey('totalPauseDuration')
? json_['totalPauseDuration'] as core.String
: null,
warnings: json_.containsKey('warnings')
? (json_['warnings'] as core.List)
.map((value) => MigrationWarning.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);