serialize method

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

Serialize.

Implementation

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

  // Write fields.
  buffer.writeInt32(flags);
  buffer.writeInt32(colorId);
  final localColorsCopy = colors;
  if (localColorsCopy != null) {
    buffer.writeObject(localColorsCopy);
  }
  final localDarkColorsCopy = darkColors;
  if (localDarkColorsCopy != null) {
    buffer.writeObject(localDarkColorsCopy);
  }
  final localChannelMinLevelCopy = channelMinLevel;
  if (localChannelMinLevelCopy != null) {
    buffer.writeInt32(localChannelMinLevelCopy);
  }

  // Finished serialization.
}