ReplicationRun.fromJson constructor
ReplicationRun.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReplicationRun.fromJson(Map<String, dynamic> json) {
return ReplicationRun(
amiId: json['amiId'] as String?,
completedTime: timeStampFromJson(json['completedTime']),
description: json['description'] as String?,
encrypted: json['encrypted'] as bool?,
kmsKeyId: json['kmsKeyId'] as String?,
replicationRunId: json['replicationRunId'] as String?,
scheduledStartTime: timeStampFromJson(json['scheduledStartTime']),
stageDetails: json['stageDetails'] != null
? ReplicationRunStageDetails.fromJson(
json['stageDetails'] as Map<String, dynamic>)
: null,
state: (json['state'] as String?)?.toReplicationRunState(),
statusMessage: json['statusMessage'] as String?,
type: (json['type'] as String?)?.toReplicationRunType(),
);
}