aprAprTypeFromJson function

AprAprType aprAprTypeFromJson(
  1. String? aprAprType
)

Implementation

enums.AprAprType aprAprTypeFromJson(String? aprAprType) {
  if (aprAprType == null) {
    return enums.AprAprType.swaggerGeneratedUnknown;
  }

  return enums.$AprAprTypeMap.entries
      .firstWhere(
          (element) => element.value.toLowerCase() == aprAprType.toLowerCase(),
          orElse: () =>
              const MapEntry(enums.AprAprType.swaggerGeneratedUnknown, ''))
      .key;
}