ChatInviteLinkCount.fromJson constructor

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

Parses a ChatInviteLinkCount from TDLib JSON.

Implementation

factory ChatInviteLinkCount.fromJson(Map<String, dynamic> json) =>
    ChatInviteLinkCount(
      userId: _readInt(json['user_id']),
      inviteLinkCount: _readInt(json['invite_link_count']),
      revokedInviteLinkCount: _readInt(json['revoked_invite_link_count']),
    );