PhotosGetUserPhotos.deserialize constructor
PhotosGetUserPhotos.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory PhotosGetUserPhotos.deserialize(BinaryReader reader) {
// Read [PhotosGetUserPhotos] fields.
final userId = reader.readObject() as InputUserBase;
final offset = reader.readInt32();
final maxId = reader.readInt64();
final limit = reader.readInt32();
// Construct [PhotosGetUserPhotos] object.
final returnValue = PhotosGetUserPhotos(
userId: userId,
offset: offset,
maxId: maxId,
limit: limit,
);
// Now return the deserialized [PhotosGetUserPhotos].
return returnValue;
}