ChatInviteLinkCounts.fromJson constructor

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

Parse from a json

Implementation

factory ChatInviteLinkCounts.fromJson(Map<String, dynamic> json) =>
    ChatInviteLinkCounts(
      inviteLinkCounts: List<ChatInviteLinkCount>.from(
          (json['invite_link_counts'] ?? [])
              .map((item) => ChatInviteLinkCount.fromJson(item))
              .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );