InstanceHealthSummary.fromJson constructor

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

Implementation

factory InstanceHealthSummary.fromJson(Map<String, dynamic> json) {
  return InstanceHealthSummary(
    instanceHealth:
        (json['instanceHealth'] as String?)?.toInstanceHealthState(),
    instanceHealthReason:
        (json['instanceHealthReason'] as String?)?.toInstanceHealthReason(),
    instanceName: json['instanceName'] as String?,
  );
}