ContactsImportedContacts.deserialize constructor

ContactsImportedContacts.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ContactsImportedContacts.deserialize(BinaryReader reader) {
  // Read [ContactsImportedContacts] fields.
  final imported = reader.readVectorObject<ImportedContactBase>();
  final popularInvites = reader.readVectorObject<PopularContactBase>();
  final retryContacts = reader.readVectorInt64();
  final users = reader.readVectorObject<UserBase>();

  // Construct [ContactsImportedContacts] object.
  final returnValue = ContactsImportedContacts(
    imported: imported.items,
    popularInvites: popularInvites.items,
    retryContacts: retryContacts.items,
    users: users.items,
  );

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