fDXNotificationPriorityListFromJson function

List<FDXNotificationPriority> fDXNotificationPriorityListFromJson(
  1. List? fDXNotificationPriority, [
  2. List<FDXNotificationPriority>? defaultValue
])

Implementation

List<enums.FDXNotificationPriority> fDXNotificationPriorityListFromJson(
  List? fDXNotificationPriority, [
  List<enums.FDXNotificationPriority>? defaultValue,
]) {
  if (fDXNotificationPriority == null) {
    return defaultValue ?? [];
  }

  return fDXNotificationPriority
      .map((e) => fDXNotificationPriorityFromJson(e.toString()))
      .toList();
}