withUnknownFallback

open fun withUnknownFallback(@Nullable fallbackValue: T): EnumJsonAdapter<T>

Create a new adapter for this enum with a fallback value to use when the JSON string does not match any of the enum's constants. Note that this value will not be used when the JSON value is null, absent, or not a string. Also, the string values are case-sensitive, and this fallback value will be used even on case mismatches.