ClusterStateChangeReason.fromJson constructor

ClusterStateChangeReason.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ClusterStateChangeReason.fromJson(Map<String, dynamic> json) {
  return ClusterStateChangeReason(
    code: (json['Code'] as String?)?.toClusterStateChangeReasonCode(),
    message: json['Message'] as String?,
  );
}