notificationTypesListToJson function

List<String> notificationTypesListToJson(
  1. List<NotificationTypes>? notificationTypes
)

Implementation

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

  return notificationTypes.map((e) => enums.$NotificationTypesMap[e]!).toList();
}