ImportedContacts.fromJson constructor

ImportedContacts.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory ImportedContacts.fromJson(Map<String, dynamic> json) =>
    ImportedContacts(
      userIds: List<int>.from(
          (json['user_ids'] ?? []).map((item) => item).toList()),
      importerCount: List<int>.from(
          (json['importer_count'] ?? []).map((item) => item).toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );