Package com.squareup.moshi.adapters

Types

EnumJsonAdapter
Link copied to clipboard
class EnumJsonAdapter<T : Enum<T>?> : JsonAdapter<T>
A JsonAdapter for enums that allows having a fallback enum value when a deserialized string does not match any enum value.
PolymorphicJsonAdapterFactory
Link copied to clipboard
class PolymorphicJsonAdapterFactory<T> : JsonAdapter.Factory
A JsonAdapter factory for objects that include type information in the JSON.
Rfc3339DateJsonAdapter
Link copied to clipboard
class Rfc3339DateJsonAdapter : JsonAdapter<Date>
Formats dates using RFC 3339, which is formatted like {@code 2015-09-26T18:23:50.250Z}.