BaseSerializer class abstract interface

Base interface for all serializers within the JetLeaf mapping framework.

A BaseSerializer provides access to shared components that drive JSON serialization — including the active ObjectMapper, NamingStrategy, and ConversionService.

This interface defines the contextual backbone used by higher-level abstractions like SerializerProvider and concrete serializers (e.g., JsonSerializer).

Overview

  • Exposes serialization configuration and environment context
  • Provides consistent naming and conversion behavior
  • Used internally by ObjectMapper and serializer adapters

Example

final naming = serializer.getNamingStrategy();
final jsonKey = naming.toJsonName('userName'); // user_name

See also

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

getConversionService() → ConversionService
Returns the global ConversionService responsible for type coercions and primitive value conversions.
getEnvironment() → Environment
Returns the active Environment configuration associated with this mapper.
getNamingStrategy() NamingStrategy
Returns the naming strategy used for field name conversion.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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