serializeList

fun <T> serializeList(entities: Iterable<T>, elementType: Type): RequestBody

Serializes a list of entities using the first serializer.

Return

The serialized entities as a request body.

Parameters

entities

The entities to serialize.

elementType

The type of the individual entities.

Type Parameters

T

The type of the individual entities.