notificationTypeDTOFromJson function

NotificationTypeDTO notificationTypeDTOFromJson(
  1. Object? notificationTypeDTO, [
  2. NotificationTypeDTO? defaultValue
])

Implementation

enums.NotificationTypeDTO notificationTypeDTOFromJson(
  Object? notificationTypeDTO, [
  enums.NotificationTypeDTO? defaultValue,
]) {
  return enums.NotificationTypeDTO.values
          .firstWhereOrNull((e) => e.value == notificationTypeDTO) ??
      defaultValue ??
      enums.NotificationTypeDTO.swaggerGeneratedUnknown;
}