SinglyLinkedEventSourcedModelCodec<S extends EventSourcedSnapshot<S, B, E> , B extends EventSourcedSnapshotBuilder<S, B, E> , E extends EventSourcedEvent<S, B, E> > class
An Codec which can encode and decode an SinglyLinkedEventSourcedModel.
- Inheritance
-
- Object
- Codec<
SinglyLinkedEventSourcedModel< S, B, E> , Map<String, dynamic> > - SinglyLinkedEventSourcedModelCodec
Constructors
- SinglyLinkedEventSourcedModelCodec()
-
Create an SinglyLinkedEventSourcedModelCodec.
const
Properties
-
decoder
→ Converter<
Map< String, dynamic> , SinglyLinkedEventSourcedModel<S, B, E> > -
Returns the decoder of
this
, converting fromT
toS
.no setteroverride -
encoder
→ Converter<
SinglyLinkedEventSourcedModel< S, B, E> , Map<String, dynamic> > -
Returns the encoder from
S
toT
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Map< String, dynamic> , SinglyLinkedEventSourcedModel<S, B, E> > -
Inverts
this
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Map< String, dynamic> encoded) → SinglyLinkedEventSourcedModel<S, B, E> -
Decodes
encoded
data.inherited -
encode(
SinglyLinkedEventSourcedModel< S, B, E> input) → Map<String, dynamic> -
Encodes
input
.inherited -
fuse<
R> (Codec< Map< other) → Codec<String, dynamic> , R>SinglyLinkedEventSourcedModel< S, B, E> , R> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited