serializeList

fun <T> serializeList(entities: Iterable<T>, type: Class<T>): RequestBody

Serializes a list of entities using the first serializer.

Return

The serialized entity as a request body.

Parameters

entities

The entities to serialize.

T

The type of entity to serialize.