ChatInviteLinkMembers.fromJson constructor

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

Parse from a json

Implementation

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