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