withFallbackJsonAdapter

open fun withFallbackJsonAdapter(@Nullable fallbackJsonAdapter: JsonAdapter<Any>): PolymorphicJsonAdapterFactory<T>

Returns a new factory that with default to fallbackJsonAdapter.fromJson(reader) upon decoding of unrecognized labels.

The JsonReader instance will not be automatically consumed, so make sure to consume it within your implementation of fromJson