RulesAdapter

class RulesAdapter<T : Enum<T>, Rules>(clazz: Class<T>) : JsonAdapter<T>

Constructors

Link copied to clipboard
constructor(clazz: Class<T>)

Functions

Link copied to clipboard
@CheckReturnValue
fun failOnUnknown(): JsonAdapter<T?>?
Link copied to clipboard
open override fun fromJson(reader: JsonReader): T?
@CheckReturnValue
@Nullable
fun fromJson(string: String?): T?
@CheckReturnValue
@Nullable
fun fromJson(source: BufferedSource?): T?
Link copied to clipboard
@CheckReturnValue
@Nullable
fun fromJsonValue(@Nullable value: Any?): T?
Link copied to clipboard
@CheckReturnValue
open fun indent(indent: String?): JsonAdapter<T?>?
Link copied to clipboard
@CheckReturnValue
fun lenient(): JsonAdapter<T?>?
Link copied to clipboard
@CheckReturnValue
fun nonNull(): JsonAdapter<T?>?
Link copied to clipboard
@CheckReturnValue
fun nullSafe(): JsonAdapter<T?>?
Link copied to clipboard
@CheckReturnValue
fun serializeNulls(): JsonAdapter<T?>?
Link copied to clipboard
open override fun toJson(writer: JsonWriter, rule: T?)
@CheckReturnValue
fun toJson(@Nullable value: T?): String?
fun toJson(sink: BufferedSink?, @Nullable value: T?)
Link copied to clipboard
@CheckReturnValue
@Nullable
fun toJsonValue(@Nullable value: T?): Any?