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,
    popularInvites: popularInvites,
    retryContacts: retryContacts,
    users: users,
  );

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