payload
Merges all fields from value into the payload, encoded using serializer.
The object is serialized to a JSON object and each key-value pair is added to the payload, overwriting any existing claim with the same name.
Return
this builder for chaining
Parameters
serializer
the serialization strategy for T
value
the object whose fields should be merged into the payload
Merges all fields from value into the payload, inferring the serializer from the reified type T.
The object is serialized to a JSON object and each key-value pair is added to the payload, overwriting any existing claim with the same name.
Return
this builder for chaining
Parameters
value
the object whose fields should be merged into the payload