write method
Is called when a value has to be encoded.
Implementation
@override
void write(BinaryWriter writer, RuutMessage obj) {
writer
..writeByte(9)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.content)
..writeByte(2)
..write(obj.messageType)
..writeByte(3)
..write(obj.contentType)
..writeByte(4)
..write(obj.contentAttributes)
..writeByte(5)
..write(obj.createdAt)
..writeByte(6)
..write(obj.conversationId)
..writeByte(7)
..write(obj.attachments)
..writeByte(8)
..write(obj.sender);
}