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