depositSwitchCreateRequestCountryCodeFromJson function

DepositSwitchCreateRequestCountryCode depositSwitchCreateRequestCountryCodeFromJson(
  1. String? depositSwitchCreateRequestCountryCode
)

Implementation

enums.DepositSwitchCreateRequestCountryCode
    depositSwitchCreateRequestCountryCodeFromJson(
        String? depositSwitchCreateRequestCountryCode) {
  if (depositSwitchCreateRequestCountryCode == null) {
    return enums.DepositSwitchCreateRequestCountryCode.swaggerGeneratedUnknown;
  }

  return enums.$DepositSwitchCreateRequestCountryCodeMap.entries
      .firstWhere(
          (element) =>
              element.value.toLowerCase() ==
              depositSwitchCreateRequestCountryCode.toLowerCase(),
          orElse: () => const MapEntry(
              enums.DepositSwitchCreateRequestCountryCode
                  .swaggerGeneratedUnknown,
              ''))
      .key;
}