serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x8d595cd6.
buffer.writeInt32(0x8d595cd6);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt32(viewsCount);
final localForwardsCountCopy = forwardsCount;
if (localForwardsCountCopy != null) {
buffer.writeInt32(localForwardsCountCopy);
}
final localReactionsCopy = reactions;
if (localReactionsCopy != null) {
buffer.writeVectorObject(localReactionsCopy);
}
final localReactionsCountCopy = reactionsCount;
if (localReactionsCountCopy != null) {
buffer.writeInt32(localReactionsCountCopy);
}
final localRecentViewersCopy = recentViewers;
if (localRecentViewersCopy != null) {
buffer.writeVectorInt64(localRecentViewersCopy);
}
// Finished serialization.
}