ChatInviteLinkSubscriptionInfo.fromJson constructor

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

Parses a ChatInviteLinkSubscriptionInfo from TDLib JSON.

Implementation

factory ChatInviteLinkSubscriptionInfo.fromJson(Map<String, dynamic> json) =>
    ChatInviteLinkSubscriptionInfo(
      pricing: _readObject(json['pricing'], StarSubscriptionPricing.fromJson),
      canReuse: _readBool(json['can_reuse']),
      formId: _readInt(json['form_id']),
    );