Moshi
Coordinates binding between JSON values and Java objects.
Moshi instances are thread-safe, meaning multiple threads can safely use a single instance concurrently.
class Moshi
Content copied to clipboard
Constructors
Moshi
Link copied to clipboard
Types
Lookup
Link copied to clipboard
LookupChain
Link copied to clipboard
class LookupChain
Content copied to clipboard
Functions
adapter
Link copied to clipboard
open fun <T> adapter(type: Type, annotationTypes: Array<Class<out Annotation>>): JsonAdapter<T>
Content copied to clipboard
open fun <T> adapter(type: Type, annotationType: Class<out Annotation>): JsonAdapter<T>
Content copied to clipboard
open fun <T> adapter(type: Type, annotations: Set<out Annotation>): JsonAdapter<T>
Content copied to clipboard
open fun <T> adapter(type: Type, annotations: Set<out Annotation>, fieldName: String): JsonAdapter<T>
Content copied to clipboard
newAdapterFactory
Link copied to clipboard
open fun <T> newAdapterFactory(type: Type, jsonAdapter: JsonAdapter<T>): JsonAdapter.Factory
Content copied to clipboard
open fun <T> newAdapterFactory(type: Type, annotation: Class<out Annotation>, jsonAdapter: JsonAdapter<T>): JsonAdapter.Factory
Content copied to clipboard
newBuilder
Link copied to clipboard
nextAdapter
Link copied to clipboard
open fun <T> nextAdapter(skipPast: JsonAdapter.Factory, type: Type, annotations: Set<out Annotation>): JsonAdapter<T>
Content copied to clipboard
Properties
BUILT_IN_FACTORIES
Link copied to clipboard