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