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 notmatch any of the enum's constants. Note that this value will not be used when the JSON value isnull, absent, or not a string. Also, the string values are case-sensitive, and this fallbackvalue will be used even on case mismatches.