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