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