fDXNotificationSeverityListFromJson function

List<FDXNotificationSeverity> fDXNotificationSeverityListFromJson(
  1. List? fDXNotificationSeverity, [
  2. List<FDXNotificationSeverity>? defaultValue
])

Implementation

List<enums.FDXNotificationSeverity> fDXNotificationSeverityListFromJson(
  List? fDXNotificationSeverity, [
  List<enums.FDXNotificationSeverity>? defaultValue,
]) {
  if (fDXNotificationSeverity == null) {
    return defaultValue ?? [];
  }

  return fDXNotificationSeverity
      .map((e) => fDXNotificationSeverityFromJson(e.toString()))
      .toList();
}