Chats.fromJson constructor

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

Parses a Chats from TDLib JSON.

Implementation

factory Chats.fromJson(Map<String, dynamic> json) => Chats(
      totalCount: _readInt(json['total_count']),
      chatIds: _readList<int>(json['chat_ids'], _readInt),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );