Serializes a value using explicit type metadata.
public static string Serialize(object? value, YamlTypeInfo typeInfo)
The value to serialize.
The metadata used for serialization.