Decoder

fun Decoder(moshi: Moshi): BodyAdapter.Decoder

Creates a decoder that uses the given Moshi instance for decoding objects and is compatible with application/json.


fun Decoder(moshi: Moshi, vararg mediaTypes: MediaType): BodyAdapter.Decoder

Creates a decoder that uses the given Moshi instance for decoding objects and is compatible with the given media types.