write method

  1. @override
void write(
  1. BinaryWriter writer,
  2. DidcommConversation obj
)
override

Is called when a value has to be encoded.

Implementation

@override
void write(BinaryWriter writer, DidcommConversation obj) {
  writer
    ..writeByte(3)
    ..writeByte(0)
    ..write(obj.lastMessage)
    ..writeByte(1)
    ..write(obj.protocol)
    ..writeByte(2)
    ..write(obj.myDid);
}