with Fallback Json Adapter
open fun withFallbackJsonAdapter(@Nullable fallbackJsonAdapter: JsonAdapter<Any>): PolymorphicJsonAdapterFactory<T>
Content copied to clipboard
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