Serializer
Functions
Begin a list (i.e. in JSON this would be a '[') and return a ListSerializer that can be used to serialize the list's elements.
Begin a map (i.e. in JSON this would be a '{') and return a MapSerializer that can be used to serialize the map's entries.
Begin a struct (i.e. in JSON this would be a '{') and return a StructSerializer that can be used to serialize the struct's fields.
Consume the serializer and get the payload as a ByteArray
Inherited functions
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
Serializes the given value.
All elements of a list are expected to be serialized in the given block.
Serializes the given value.
All entries of a map are expected to be serialized in the given block.
Serializes the given value.
Calls the serialize method on the given object.
Serializes the given value.
Serializes the given value.
All components of a struct are expected to be serialized in the given block.