adapter
Returns a JSON adapter for {@code type}, creating it if necessary.
open fun <T> adapter(type: Type, annotationType: Class<out Annotation>): JsonAdapter<T>
Content 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, annotations: Set<out Annotation>): JsonAdapter<T>
Content copied to clipboard
open fun <T> adapter(type: Type, annotations: Set<out Annotation>, @Nullable() fieldName: String): JsonAdapter<T>
Content copied to clipboard
Parameters
fieldName
An optional field name associated with this type. The field name is used as ahint for better adapter lookup error messages for nested structures.