serverpod_serialization library
Classes
- Namespace
- SerializableEntity
- The SerializableEntity is the base class for all serializable objects in Serverpod, except primitives.
- SerializationManager
- The SerializationManager is responsible for creating objects from a serialization, but also for serializing objects. This class is typically extended by generated code.
- Uuid
- uuid for Dart Author: Yulian Kuncheff Released under MIT License.
- UuidValue
Enums
- ValidationMode
- The options for UUID Validation strictness
Extensions
- Base64Dec on String
- Extension for decoding ByteData in protocol.
- Base64Enc on ByteData
- Extension for encoding ByteData in the protocol.
- ByteDataToJson on ByteData
- Expose toJson on ByteData
- CloneByteData on ByteData
- Adds clone method that create a deep copy of a ByteData.
- CloneList on List
- Adds clone method that create a deep copy of a list.
- CloneMap on Map
- Adds clone method that create a deep copy of a map.
- DateTimeToJson on DateTime
- Expose toJson on DateTime
- DurationToJson on Duration
- Expose toJson on Duration
-
ListToJson
on List<
T> - Expose toJson on List
-
MapToJson
on Map<
K, V> - Expose toJson on Map
- UuidValueToJson on UuidValue
- Expose toJson on UuidValue
Constants
-
autoSerializedTypes
→ const List<
String> - All datatypes that are serialized by default. Used internally in Serverpod code generation.
-
clonableTypeNames
→ const List<
String> - List of types that has a clone method extension and therefore can be copied by calling clone().
-
extensionSerializedTypes
→ const List<
String> - All datatypes that has extensions to support serialization. Used internally in Serverpod code generation.
Properties
-
noneMutableTypeNames
→ List<
String> -
List of types that are not mutable and therefore do not need to be
copied or handled in a copyWith method.
final
Functions
Typedefs
-
constructor<
T> = T Function(dynamic jsonSerialization, SerializationManager serializationManager) - The constructor takes JSON structure and turns it into a decoded SerializableEntity.
Exceptions / Errors
- SerializableException
-
This is
SerializableException
that can be used to pass Domain exceptions from the Server to the Client