BotsCheckDownloadFileParams.deserialize constructor

BotsCheckDownloadFileParams.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotsCheckDownloadFileParams.deserialize(BinaryReader reader) {
  // Read [BotsCheckDownloadFileParams] fields.
  final bot = reader.readObject() as InputUserBase;
  final fileName = reader.readString();
  final url = reader.readString();

  // Construct [BotsCheckDownloadFileParams] object.
  final returnValue = BotsCheckDownloadFileParams(
    bot: bot,
    fileName: fileName,
    url: url,
  );

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