ChatsNearby.fromJson constructor
Parse from a json
Implementation
factory ChatsNearby.fromJson(Map<String, dynamic> json) => ChatsNearby(
usersNearby: List<ChatNearby>.from((json['users_nearby'] ?? [])
.map((item) => ChatNearby.fromJson(item))
.toList()),
supergroupsNearby: List<ChatNearby>.from(
(json['supergroups_nearby'] ?? [])
.map((item) => ChatNearby.fromJson(item))
.toList()),
extra: json['@extra'],
clientId: json['@client_id'],
);