CommitSerializer

Hierarchy

  • CommitSerializer

Implements

Index

Methods

Methods

deserialize

deserialize(serializedCommit: Record‹string, any›): Commit

Implementation of CommitSerializer

Deserializes serialized commit.

Parameters:

NameTypeDescription
serializedCommitRecord‹string, any›Serialized commit.

Returns: Commit

Instance implementing Commit interface.


serialize

serialize(commit: Commit): Record‹string, any›

Implementation of CommitSerializer

Serializes commit.

Parameters:

NameTypeDescription
commitCommitInstance implementing Commit interface.

Returns: Record‹string, any›

Serialized commit as a plain object compatible with MongoDB document structure.