Serializes a value to a stream using UTF-8 encoding, an explicit input type, and generated metadata from a serializer context.
public static void Serialize(Stream stream, object? value, Type inputType, TomlSerializerContext context)