YamlSerializationContext class

Manages ObjectSerializer instances during YAML serialization.

Implemented types

Constructors

YamlSerializationContext(ObjectMapper _objectMapper, Map<Class, ObjectSerializer<dynamic, Generator, SerializationContext<Generator>>> _serializers)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

findSerializerForType(Class type) → ObjectSerializer<dynamic, Generator, SerializationContext<Generator>>?
Finds and returns a ObjectSerializer suitable for the given type.
override
getConversionService() → ConversionService
Returns the global ConversionService responsible for type coercions and primitive value conversions.
override
getEnvironment() → Environment
Returns the active Environment configuration associated with this mapper.
override
getNamingStrategy() → NamingStrategy
Returns the naming strategy used for field name conversion.
override
getObjectMapper() → ObjectMapper
Returns the active ObjectMapper performing serialization.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(Object? object, YamlGenerator generator) → void
Serializes the given object using a registered or default serializer.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited