serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x52d8ccd9.
buffer.writeInt32(0x52d8ccd9);
// Write fields.
buffer.writeInt32(flags);
final localDocumentCopy = document;
if (localDocumentCopy != null) {
buffer.writeObject(localDocumentCopy);
}
final localAltDocumentsCopy = altDocuments;
if (localAltDocumentsCopy != null) {
buffer.writeVectorObject(localAltDocumentsCopy);
}
final localVideoCoverCopy = videoCover;
if (localVideoCoverCopy != null) {
buffer.writeObject(localVideoCoverCopy);
}
final localVideoTimestampCopy = videoTimestamp;
if (localVideoTimestampCopy != null) {
buffer.writeInt32(localVideoTimestampCopy);
}
final localTtlSecondsCopy = ttlSeconds;
if (localTtlSecondsCopy != null) {
buffer.writeInt32(localTtlSecondsCopy);
}
// Finished serialization.
}