incidentUpdateStatusListFromJson function
List<IncidentUpdateStatus>
incidentUpdateStatusListFromJson(
- List? incidentUpdateStatus, [
- List<
IncidentUpdateStatus> ? defaultValue
Implementation
List<enums.IncidentUpdateStatus> incidentUpdateStatusListFromJson(
List? incidentUpdateStatus, [
List<enums.IncidentUpdateStatus>? defaultValue,
]) {
if (incidentUpdateStatus == null) {
return defaultValue ?? [];
}
return incidentUpdateStatus
.map((e) => incidentUpdateStatusFromJson(e.toString()))
.toList();
}