fallback property

bool fallback
final

Marks a value that is used as a fallback when an unrecognized value is encountered.

Defaults to false. At most one fallback is allowed per EnumClass.

Applies to the valueOf method and to deserialization; both will use the fallback, if available, rather than throwing an exception.

Implementation

final bool fallback;