serialize method

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

Serialize.

Implementation

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

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeInt64(channelId);
  final localTopMsgIdCopy = topMsgId;
  if (localTopMsgIdCopy != null) {
    buffer.writeInt32(localTopMsgIdCopy);
  }
  buffer.writeObject(fromId);
  buffer.writeObject(action);

  // Finished serialization.
}