AbstractJsonSerializer

Common base class for JSON serializers.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val supportedMediaTypes: List<MediaType>

A list of MIME types this serializer supports.

Functions

Link copied to clipboard
abstract fun <T> deserialize(body: ResponseBody, type: Class<T>): T?

Deserializes an entity.

Link copied to clipboard
abstract fun <T> deserializeList(body: ResponseBody, type: Class<T>): List<T>?

Deserializes a list of entities.

Link copied to clipboard
abstract fun <T> serialize(entity: T, type: Class<T>): RequestBody

Serializes an entity.

Link copied to clipboard
abstract fun <T> serializeList(entities: Iterable<T>, type: Class<T>): RequestBody

Serializes a list of entities.