RequiresMapConverter
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.BlueprintCatalogs.Serialization
YAML round-trip converter for RequiresMap. Allows the value of each
entry in the requires: block to be written as either a scalar shortcut or a
YAML sequence — both are normalised to List<T> on read. Serialisation
always emits sequences for round-trip stability.
public sealed class RequiresMapConverter : IYamlTypeConverter
Inheritance Object → RequiresMapConverter
Implements IYamlTypeConverter
Constructors
RequiresMapConverter()
public RequiresMapConverter()
Methods
Accepts(Type)
public bool Accepts(Type type)
Parameters
type Type
Returns
ReadYaml(IParser, Type, ObjectDeserializer)
public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
Parameters
parser IParser
type Type
rootDeserializer ObjectDeserializer
Returns
WriteYaml(IEmitter, Object, Type, ObjectSerializer)
public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer rootSerializer)
Parameters
emitter IEmitter
value Object
type Type
rootSerializer ObjectSerializer