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