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