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