AttachMenuBotIconColor.deserialize constructor

AttachMenuBotIconColor.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AttachMenuBotIconColor.deserialize(BinaryReader reader) {
  // Read [AttachMenuBotIconColor] fields.
  final name = reader.readString();
  final color = reader.readInt32();

  // Construct [AttachMenuBotIconColor] object.
  final returnValue = AttachMenuBotIconColor(
    name: name,
    color: color,
  );

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