GroupMaintenanceInfo.fromJson constructor

GroupMaintenanceInfo.fromJson(
  1. Object? j
)

Implementation

factory GroupMaintenanceInfo.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GroupMaintenanceInfo(
    instanceMaintenanceOngoingCount:
        switch (json['instanceMaintenanceOngoingCount']) {
          null => null,
          Object $1 => decodeInt($1),
        },
    instanceMaintenancePendingCount:
        switch (json['instanceMaintenancePendingCount']) {
          null => null,
          Object $1 => decodeInt($1),
        },
    maintenanceOngoingCount: switch (json['maintenanceOngoingCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    maintenancePendingCount: switch (json['maintenancePendingCount']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    schedulingType: switch (json['schedulingType']) {
      null => null,
      Object $1 => decodeString($1),
    },
    subblockInfraMaintenanceOngoingCount:
        switch (json['subblockInfraMaintenanceOngoingCount']) {
          null => null,
          Object $1 => decodeInt($1),
        },
    subblockInfraMaintenancePendingCount:
        switch (json['subblockInfraMaintenancePendingCount']) {
          null => null,
          Object $1 => decodeInt($1),
        },
    upcomingGroupMaintenance: switch (json['upcomingGroupMaintenance']) {
      null => null,
      Object $1 => UpcomingMaintenance.fromJson($1),
    },
  );
}