destinationTypeEnumNullableFromJson function
- Object? destinationTypeEnum, [
- DestinationTypeEnum? defaultValue
Implementation
enums.DestinationTypeEnum? destinationTypeEnumNullableFromJson(
Object? destinationTypeEnum, [
enums.DestinationTypeEnum? defaultValue,
]) {
if (destinationTypeEnum == null) {
return null;
}
return enums.DestinationTypeEnum.values
.firstWhereOrNull((e) => e.value == destinationTypeEnum) ??
defaultValue;
}