Creates a Serializer.
The name of the collection of objects.
Options for the serializer.
Caching
The name to use for the type.
The set of helper functions for the serializer
Private optionsThe set of options for the serializer.
Static 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
The actual serialization function.
Data to serialize.
Optional options: Partial<SerializerOptions<PrimaryType>>Options to use at runtime.
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: