serialize method

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

Serialize.

Implementation

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

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeObject(call);
  buffer.writeObject(participant);
  final localMutedCopy = muted;
  if (localMutedCopy != null) {
    buffer.writeBool(localMutedCopy);
  }
  final localVolumeCopy = volume;
  if (localVolumeCopy != null) {
    buffer.writeInt32(localVolumeCopy);
  }
  final localRaiseHandCopy = raiseHand;
  if (localRaiseHandCopy != null) {
    buffer.writeBool(localRaiseHandCopy);
  }
  final localVideoStoppedCopy = videoStopped;
  if (localVideoStoppedCopy != null) {
    buffer.writeBool(localVideoStoppedCopy);
  }
  final localVideoPausedCopy = videoPaused;
  if (localVideoPausedCopy != null) {
    buffer.writeBool(localVideoPausedCopy);
  }
  final localPresentationPausedCopy = presentationPaused;
  if (localPresentationPausedCopy != null) {
    buffer.writeBool(localPresentationPausedCopy);
  }

  // Finished serialization.
}