HelpPeerColorProfileSet.deserialize constructor

HelpPeerColorProfileSet.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory HelpPeerColorProfileSet.deserialize(BinaryReader reader) {
  // Read [HelpPeerColorProfileSet] fields.
  final paletteColors = reader.readVectorInt32();
  final bgColors = reader.readVectorInt32();
  final storyColors = reader.readVectorInt32();

  // Construct [HelpPeerColorProfileSet] object.
  final returnValue = HelpPeerColorProfileSet(
    paletteColors: paletteColors,
    bgColors: bgColors,
    storyColors: storyColors,
  );

  // Now return the deserialized [HelpPeerColorProfileSet].
  return returnValue;
}