ContactsBlock.deserialize constructor
ContactsBlock.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ContactsBlock.deserialize(BinaryReader reader) {
// Read [ContactsBlock] fields.
final flags = reader.readInt32();
final myStoriesFrom = (flags & 1) != 0;
final id = reader.readObject() as InputPeerBase;
// Construct [ContactsBlock] object.
final returnValue = ContactsBlock(
myStoriesFrom: myStoriesFrom,
id: id,
);
// Now return the deserialized [ContactsBlock].
return returnValue;
}