unknownEnumValue property

Enum? unknownEnumValue
final

The value to use for an enum field when the value provided is not in the source enum.

Valid only on enum fields with a compatible enum value.

If you want to use the value null when encountering an unknown value, use the value of JsonKey.nullForUndefinedEnumValue instead. This is only valid on a nullable enum field.

Implementation

final Enum? unknownEnumValue;