Caching
The name to use for the type.
The set of helper functions for the serializer
Private
keyPrivate
serialisersStatic
defaultDefault options. Can be edited to change default options globally.
Internal
Generates a ResourceIdentifier
.
Optional
options: SerializerOptions<PrimaryType>Internal
Generates a Resource
.
Optional
options: Partial<SerializerOptions<PrimaryType>>Optional
helpers: Helpers<PrimaryType>Optional
relatorDataCache: Map<Relator<any, any>, Dictionary<any>[]>Gets the Relators associated with this serializer
Private
getThe actual serialization function.
Data to serialize.
Optional
options: Partial<SerializerOptions<PrimaryType>>Options to use at runtime.
Private
serializeOptional
options: Partial<SerializerOptions<PrimaryType>>Sets the Relators associated with this serializer
Generated using TypeDoc
The Serializer class is the main class used to serializer data (you can use the ErrorSerializer class to serialize errors).
Example: