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