InputWebFileGeoPointLocation.deserialize constructor

InputWebFileGeoPointLocation.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputWebFileGeoPointLocation.deserialize(BinaryReader reader) {
  // Read [InputWebFileGeoPointLocation] fields.
  final geoPoint = reader.readObject() as InputGeoPointBase;
  final accessHash = reader.readInt64();
  final w = reader.readInt32();
  final h = reader.readInt32();
  final zoom = reader.readInt32();
  final scale = reader.readInt32();

  // Construct [InputWebFileGeoPointLocation] object.
  final returnValue = InputWebFileGeoPointLocation(
    geoPoint: geoPoint,
    accessHash: accessHash,
    w: w,
    h: h,
    zoom: zoom,
    scale: scale,
  );

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