SnapshotSerializer
Hierarchy
- SnapshotSerializer
Implements
- SnapshotSerializer
- SnapshotSerializer
Index
Methods
Methods
deserialize
▸ deserialize(_EventSourceableType
: EventSourceableType, serializedEventSourceable
: string): EventSourceable
Implementation of SnapshotSerializer
Deserializes serialized event sourceable.
Parameters:
Name | Type | Description |
---|---|---|
_EventSourceableType | EventSourceableType | - |
serializedEventSourceable | string | Serialized 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:
Name | Type | Description |
---|---|---|
eventSourceable | EventSourceable | Instance implementing EventSourceable interface. |
Returns: Record‹string, any›
Serialized event sourceable as a string.