InputRichFilePhoto.deserialize constructor

InputRichFilePhoto.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputRichFilePhoto.deserialize(BinaryReader reader) {
  // Read [InputRichFilePhoto] fields.
  final id = reader.readString();
  final photo = reader.readObject() as InputPhotoBase;

  // Construct [InputRichFilePhoto] object.
  final returnValue = InputRichFilePhoto(id: id, photo: photo);

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