unknownEnumValue property
The value to use for an enum field when the provided value does not match any of the values in the source enum.
Valid only on enum fields with a compatible enum value.
To use null for unknown values, use JsonKey.nullForUndefinedEnumValue.
This is only valid for nullable enum fields.
Implementation
final Enum? unknownEnumValue;