ContactsResetTopPeerRating.deserialize constructor
ContactsResetTopPeerRating.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ContactsResetTopPeerRating.deserialize(BinaryReader reader) {
// Read [ContactsResetTopPeerRating] fields.
final category = reader.readObject() as TopPeerCategoryBase;
final peer = reader.readObject() as InputPeerBase;
// Construct [ContactsResetTopPeerRating] object.
final returnValue = ContactsResetTopPeerRating(
category: category,
peer: peer,
);
// Now return the deserialized [ContactsResetTopPeerRating].
return returnValue;
}