StepStatus.fromJson constructor
StepStatus.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StepStatus.fromJson(Map<String, dynamic> json) {
return StepStatus(
failureDetails: json['FailureDetails'] != null
? FailureDetails.fromJson(
json['FailureDetails'] as Map<String, dynamic>)
: null,
state: (json['State'] as String?)?.toStepState(),
stateChangeReason: json['StateChangeReason'] != null
? StepStateChangeReason.fromJson(
json['StateChangeReason'] as Map<String, dynamic>)
: null,
timeline: json['Timeline'] != null
? StepTimeline.fromJson(json['Timeline'] as Map<String, dynamic>)
: null,
);
}