class MandateSerializationStrategyRegistry

Registry for mandate serialization strategies

Constructors

new
MandateSerializationStrategyRegistry(typeDetector?: MandateTypeDetectorRegistry)

Properties

Methods

deserializeMandate(json: string): Promise<Mandate>

Deserialize mandate by detecting type from JSON and using appropriate strategy

Get strategy for a specific mandate type

Register a serialization strategy

serializeMandate(mandate: Mandate): Promise<string>

Serialize mandate by detecting type and using appropriate strategy

Static Methods

deserialize(json: string): Promise<Mandate>

Static method to deserialize a mandate using the default registry

serialize(mandate: Mandate): Promise<string>

Static method to serialize a mandate using the default registry