serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xeba636fe.
buffer.writeInt32(0xeba636fe);
// Write fields.
buffer.writeInt32(flags);
buffer.writeObject(peer);
buffer.writeDateTime(date);
final localActiveDateCopy = activeDate;
if (localActiveDateCopy != null) {
buffer.writeDateTime(localActiveDateCopy);
}
buffer.writeInt32(source);
final localVolumeCopy = volume;
if (localVolumeCopy != null) {
buffer.writeInt32(localVolumeCopy);
}
final localAboutCopy = about;
if (localAboutCopy != null) {
buffer.writeString(localAboutCopy);
}
final localRaiseHandRatingCopy = raiseHandRating;
if (localRaiseHandRatingCopy != null) {
buffer.writeInt64(localRaiseHandRatingCopy);
}
final localVideoCopy = video;
if (localVideoCopy != null) {
buffer.writeObject(localVideoCopy);
}
final localPresentationCopy = presentation;
if (localPresentationCopy != null) {
buffer.writeObject(localPresentationCopy);
}
// Finished serialization.
}