incidentUpdateStatusListFromJson function

List<IncidentUpdateStatus> incidentUpdateStatusListFromJson(
  1. List? incidentUpdateStatus
)

Implementation

List<enums.IncidentUpdateStatus> incidentUpdateStatusListFromJson(
    List? incidentUpdateStatus) {
  if (incidentUpdateStatus == null) {
    return [];
  }

  return incidentUpdateStatus
      .map((e) => incidentUpdateStatusFromJson(e.toString()))
      .toList();
}