ChatMembers.fromJson constructor

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

Parse from a json

Implementation

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