PropertyTypeAdapterFactory

open class PropertyTypeAdapterFactory : TypeAdapterFactory(source)

Gson TypeAdapterFactory for creating type adapters for Properties so that their stored value is not wrapped into an additional dictionary during serialization.

See also

GsonBuilder

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class PropertyTypeAdapter<T> : TypeAdapter<T>

Functions

Link copied to clipboard
open fun <T> create(gson: Gson, type: TypeToken<T>): TypeAdapter<T>