ReservationSubBlockHealthInfo.fromJson constructor
ReservationSubBlockHealthInfo.fromJson(
- Object? j
Implementation
factory ReservationSubBlockHealthInfo.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ReservationSubBlockHealthInfo(
degradedHostCount: switch (json['degradedHostCount']) {
null => null,
Object $1 => decodeInt($1),
},
degradedInfraCount: switch (json['degradedInfraCount']) {
null => null,
Object $1 => decodeInt($1),
},
healthStatus: switch (json['healthStatus']) {
null => null,
Object $1 => decodeString($1),
},
healthyHostCount: switch (json['healthyHostCount']) {
null => null,
Object $1 => decodeInt($1),
},
healthyInfraCount: switch (json['healthyInfraCount']) {
null => null,
Object $1 => decodeInt($1),
},
);
}