ContactsBlockFromReplies.deserialize constructor
ContactsBlockFromReplies.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ContactsBlockFromReplies.deserialize(BinaryReader reader) {
// Read [ContactsBlockFromReplies] fields.
final flags = reader.readInt32();
final deleteMessage = (flags & 1) != 0;
final deleteHistory = (flags & 2) != 0;
final reportSpam = (flags & 4) != 0;
final msgId = reader.readInt32();
// Construct [ContactsBlockFromReplies] object.
final returnValue = ContactsBlockFromReplies(
deleteMessage: deleteMessage,
deleteHistory: deleteHistory,
reportSpam: reportSpam,
msgId: msgId,
);
// Now return the deserialized [ContactsBlockFromReplies].
return returnValue;
}