serialize method

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

Serialize.

Implementation

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

  // Write fields.
  buffer.writeInt32(flags);
  final localMuteUntilCopy = muteUntil;
  if (localMuteUntilCopy != null) {
    buffer.writeDateTime(localMuteUntilCopy);
  }
  final localIosSoundCopy = iosSound;
  if (localIosSoundCopy != null) {
    buffer.writeObject(localIosSoundCopy);
  }
  final localAndroidSoundCopy = androidSound;
  if (localAndroidSoundCopy != null) {
    buffer.writeObject(localAndroidSoundCopy);
  }
  final localOtherSoundCopy = otherSound;
  if (localOtherSoundCopy != null) {
    buffer.writeObject(localOtherSoundCopy);
  }
  final localStoriesIosSoundCopy = storiesIosSound;
  if (localStoriesIosSoundCopy != null) {
    buffer.writeObject(localStoriesIosSoundCopy);
  }
  final localStoriesAndroidSoundCopy = storiesAndroidSound;
  if (localStoriesAndroidSoundCopy != null) {
    buffer.writeObject(localStoriesAndroidSoundCopy);
  }
  final localStoriesOtherSoundCopy = storiesOtherSound;
  if (localStoriesOtherSoundCopy != null) {
    buffer.writeObject(localStoriesOtherSoundCopy);
  }

  // Finished serialization.
}