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