Skip to main content

write method

void write (BinaryWriter writer, User obj)

<span class="feature">override</span>

<p>Is called when a value has to be encoded.</p>

Implementation

@override
void write(BinaryWriter writer, User obj) \{
writer
..writeByte(11)
..writeByte(0)
..write(obj.authToken)
..writeByte(1)
..write(obj.refreshToken)
..writeByte(2)
..write(obj.id)
..writeByte(3)
..write(obj.firstName)
..writeByte(4)
..write(obj.lastName)
..writeByte(5)
..write(obj.email)
..writeByte(6)
..write(obj.image)
..writeByte(7)
..write(obj.joinedOrganizations)
..writeByte(8)
..write(obj.createdOrganizations)
..writeByte(9)
..write(obj.adminFor)
..writeByte(10)
..write(obj.membershipRequests);
\}