serialize method

  1. @override
void serialize(
  1. List<int> buffer
)
override

Serialize.

Implementation

@override
void serialize(List<int> buffer) {
  // Write type-id 0xcde0ec40.
  buffer.writeInt32(0xcde0ec40);

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeString(title);
  final localAboutCopy = about;
  if (localAboutCopy != null) {
    buffer.writeString(localAboutCopy);
  }
  buffer.writeObject(photo);
  buffer.writeInt32(participantsCount);
  final localParticipantsCopy = participants;
  if (localParticipantsCopy != null) {
    buffer.writeVectorObject(localParticipantsCopy);
  }
  buffer.writeInt32(color);

  // Finished serialization.
}