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