serialize method

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

Serialize.

Implementation

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

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeObject(call);
  buffer.writeInt64(randomId);
  buffer.writeObject(message);
  final localAllowPaidStarsCopy = allowPaidStars;
  if (localAllowPaidStarsCopy != null) {
    buffer.writeInt64(localAllowPaidStarsCopy);
  }
  final localSendAsCopy = sendAs;
  if (localSendAsCopy != null) {
    buffer.writeObject(localSendAsCopy);
  }

  // Finished serialization.
}