RemediationExecutionStatus.fromJson constructor
RemediationExecutionStatus.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RemediationExecutionStatus.fromJson(Map<String, dynamic> json) {
return RemediationExecutionStatus(
invocationTime: timeStampFromJson(json['InvocationTime']),
lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
resourceKey: json['ResourceKey'] != null
? ResourceKey.fromJson(json['ResourceKey'] as Map<String, dynamic>)
: null,
state: (json['State'] as String?)?.toRemediationExecutionState(),
stepDetails: (json['StepDetails'] as List?)
?.whereNotNull()
.map((e) =>
RemediationExecutionStep.fromJson(e as Map<String, dynamic>))
.toList(),
);
}