SnapshotSerializer

Hierarchy

  • SnapshotSerializer

Implements

Index

Methods

Methods

deserialize

deserialize(_EventSourceableType: EventSourceableType, serializedEventSourceable: string): EventSourceable

Implementation of SnapshotSerializer

Deserializes serialized event sourceable.

Parameters:

NameTypeDescription
_EventSourceableTypeEventSourceableType-
serializedEventSourceablestringSerialized event sourceable as a string.

Returns: EventSourceable

Deserialized instance of EventSourceable.


serialize

serialize(eventSourceable: EventSourceable): Record‹string, any›

Implementation of SnapshotSerializer

Serializes EventSourceable instance.

Parameters:

NameTypeDescription
eventSourceableEventSourceableInstance implementing EventSourceable interface.

Returns: Record‹string, any›

Serialized event sourceable as a string.