takeFrom
Merges all fields from value into this builder, encoded using serializer.
The object is serialized to a JsonObject and each key-value pair is added to the header, overwriting any existing parameter with the same name.
Parameters
the serialization strategy for T
the object whose fields should be merged into the header
the Json instance to use for serialization; defaults to the library's Jwt.defaultJsonParser configuration (ignoreUnknownKeys = true, explicitNulls = false)
Merges all fields from value into this builder, inferring the serializer from the reified type T.
The object is serialized to a JsonObject and each key-value pair is added to the header, overwriting any existing parameter with the same name.
Parameters
the object whose fields should be merged into the header