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