ChatInviteLinkCounts.fromJson constructor

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

Parses a ChatInviteLinkCounts from TDLib JSON.

Implementation

factory ChatInviteLinkCounts.fromJson(Map<String, dynamic> json) =>
    ChatInviteLinkCounts(
      inviteLinkCounts: _readList<ChatInviteLinkCount>(
          json['invite_link_counts'],
          (e) => _readObject(e, ChatInviteLinkCount.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );