InstanceStatus.fromJson constructor
InstanceStatus.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InstanceStatus.fromJson(Map<String, dynamic> json) {
return InstanceStatus(
state: (json['State'] as String?)?.toInstanceState(),
stateChangeReason: json['StateChangeReason'] != null
? InstanceStateChangeReason.fromJson(
json['StateChangeReason'] as Map<String, dynamic>)
: null,
timeline: json['Timeline'] != null
? InstanceTimeline.fromJson(json['Timeline'] as Map<String, dynamic>)
: null,
);
}