notificationTypesListFromJson function

List<NotificationTypes> notificationTypesListFromJson(
  1. List? notificationTypes
)

Implementation

List<enums.NotificationTypes> notificationTypesListFromJson(
    List? notificationTypes) {
  if (notificationTypes == null) {
    return [];
  }

  return notificationTypes
      .map((e) => notificationTypesFromJson(e.toString()))
      .toList();
}