issuingCountryFromJson function
Implementation
enums.IssuingCountry issuingCountryFromJson(
Object? issuingCountry, [
enums.IssuingCountry? defaultValue,
]) {
if (issuingCountry is String) {
return enums.$IssuingCountryMap.entries
.firstWhere(
(element) =>
element.value.toLowerCase() == issuingCountry.toLowerCase(),
orElse: () => const MapEntry(
enums.IssuingCountry.swaggerGeneratedUnknown, ''))
.key;
}
final parsedResult = defaultValue == null
? null
: enums.$IssuingCountryMap.entries
.firstWhereOrNull((element) => element.value == defaultValue)
?.key;
return parsedResult ??
defaultValue ??
enums.IssuingCountry.swaggerGeneratedUnknown;
}