StarTransactionTypeChannelSubscriptionPurchase.fromJson constructor

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

Implementation

factory StarTransactionTypeChannelSubscriptionPurchase.fromJson(
  Map<String, dynamic> json,
) => StarTransactionTypeChannelSubscriptionPurchase(
  chatId: _readInt(json['chat_id']),
  subscriptionPeriod: _readInt(json['subscription_period']),
);