ReservationBlockHealthInfo.fromJson constructor

ReservationBlockHealthInfo.fromJson(
  1. Object? j
)

Implementation

factory ReservationBlockHealthInfo.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ReservationBlockHealthInfo(
    degradedSubBlockCount: switch (json['degradedSubBlockCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    healthStatus: switch (json['healthStatus']) {
      null => null,
      Object $1 => decodeString($1),
    },
    healthySubBlockCount: switch (json['healthySubBlockCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
  );
}