serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0xcacb6ae2.
buffer.writeInt32(0xcacb6ae2);
// Write fields.
buffer.writeInt32(flags);
final localMuteUntilCopy = muteUntil;
if (localMuteUntilCopy != null) {
buffer.writeDateTime(localMuteUntilCopy);
}
final localSoundCopy = sound;
if (localSoundCopy != null) {
buffer.writeObject(localSoundCopy);
}
final localStoriesSoundCopy = storiesSound;
if (localStoriesSoundCopy != null) {
buffer.writeObject(localStoriesSoundCopy);
}
// Finished serialization.
}