ChatJoinRequests.fromJson constructor

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

Parse from a json

Implementation

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