write method
Is called when a value has to be encoded.
Implementation
@override
void write(BinaryWriter writer, ExchangeHistoryEntry obj) {
writer
..writeByte(4)
..writeByte(0)
..write(obj.timestamp)
..writeByte(1)
..write(obj.action)
..writeByte(2)
..write(obj.otherParty)
..writeByte(3)
..write(obj.shownAttributes);
}