write method

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

Is called when a value has to be encoded.

Implementation

@override
void write(BinaryWriter writer, ChatwootEventMessageUser obj) {
  writer
    ..writeByte(4)
    ..writeByte(0)
    ..write(obj.avatarUrl)
    ..writeByte(1)
    ..write(obj.id)
    ..writeByte(2)
    ..write(obj.name)
    ..writeByte(3)
    ..write(obj.thumbnail);
}