write method

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

Is called when a value has to be encoded.

Implementation

@override
void write(BinaryWriter writer, ChatwootUser obj) {
  writer
    ..writeByte(6)
    ..writeByte(0)
    ..write(obj.identifier)
    ..writeByte(1)
    ..write(obj.identifierHash)
    ..writeByte(2)
    ..write(obj.name)
    ..writeByte(3)
    ..write(obj.email)
    ..writeByte(4)
    ..write(obj.avatarUrl)
    ..writeByte(5)
    ..write(obj.customAttributes);
}