MessagesGetRecentLocations.deserialize constructor

MessagesGetRecentLocations.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesGetRecentLocations.deserialize(BinaryReader reader) {
  // Read [MessagesGetRecentLocations] fields.
  final peer = reader.readObject() as InputPeerBase;
  final limit = reader.readInt32();
  final hash = reader.readInt64();

  // Construct [MessagesGetRecentLocations] object.
  final returnValue = MessagesGetRecentLocations(
    peer: peer,
    limit: limit,
    hash: hash,
  );

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