Chats.fromJson constructor

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

Parse from a json

Implementation

factory Chats.fromJson(Map<String, dynamic> json) => Chats(
  totalCount: json['total_count'],
  chatIds: List<int>.from((json['chat_ids'] ?? []).map((item) => item).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);