ContactsBlockedSlice.deserialize constructor

ContactsBlockedSlice.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ContactsBlockedSlice.deserialize(BinaryReader reader) {
  // Read [ContactsBlockedSlice] fields.
  final count = reader.readInt32();
  final blocked = reader.readVectorObject<PeerBlockedBase>();
  final chats = reader.readVectorObject<ChatBase>();
  final users = reader.readVectorObject<UserBase>();

  // Construct [ContactsBlockedSlice] object.
  final returnValue = ContactsBlockedSlice(
    count: count,
    blocked: blocked,
    chats: chats,
    users: users,
  );

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