FileLocation023.deserialize constructor

FileLocation023.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory FileLocation023.deserialize(BinaryReader reader) {
  // Read [FileLocation023] fields.
  final dcId = reader.readInt32();
  final volumeId = reader.readInt64();
  final localId = reader.readInt32();
  final secret = reader.readInt64();

  // Construct [FileLocation023] object.
  final returnValue = FileLocation023(
    dcId: dcId,
    volumeId: volumeId,
    localId: localId,
    secret: secret,
  );

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