runtime/serializer library
Classes
-
CustomSerializer<
I, O> -
Specifies a custom serializer/deserializer annotation for a field
Converts between type
I(the field type) and typeU(the serialized type) -
DefaultSerializer<
T> - Default Serializer that handles basic types and nested CrystallisMixin.. See serialize and deserialize functions for details.
-
MapSerializer<
K, V> -
A Serializer for maps with keys of type
Kand values of typeV. -
Serializer<
I, O> - Abstract base class for custom serializers. See Serializer for details.
Constants
- fallbackDeserializer → const CustomSerializer
-
A Serializer that uses serializeValue and
_fallbackDeserializeValuefor serialization and deserialization. -
supportedPrimitiveTypes
→ const Set<
Type> - List of supported primitive types for serialization/deserialization
Functions
-
deserializeMap<
K, V> (Map map) → Map< K, V?> - Deserializes a Map by its respective key and value types
-
deserializeValue<
T> (dynamic value) → T? - Basic deserialization function. Handles:
-
serializeMap<
V> (Map< dynamic, V> map) → Map<String, V?> - Serializes a Map to a JSON-compatible Map<String, dynamic> by converting keys to strings and recursively serializing values
-
serializeValue(
dynamic value) → dynamic - Basic serialization function. Handles: