Serializes a value into YAML text using an explicit input type.
public static string Serialize(object? value, Type inputType, YamlSerializerOptions? options = null)
The value to serialize.
The declared input type.
The serializer options. If null, Default is used.