MessagesSetChatTheme.deserialize constructor

MessagesSetChatTheme.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesSetChatTheme.deserialize(BinaryReader reader) {
  // Read [MessagesSetChatTheme] fields.
  final peer = reader.readObject() as InputPeerBase;
  final theme = reader.readObject() as InputChatThemeBase;

  // Construct [MessagesSetChatTheme] object.
  final returnValue = MessagesSetChatTheme(peer: peer, theme: theme);

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