Serializes a value into YAML text using generated metadata from a serializer context.
public static string Serialize(object? value, Type inputType, YamlSerializerContext context)
The value to serialize.
The declared input type.
The source-generated serializer context.