StarTransactionTypeBotInvoicePurchase.fromJson constructor

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

Parses a StarTransactionTypeBotInvoicePurchase from TDLib JSON.

Implementation

factory StarTransactionTypeBotInvoicePurchase.fromJson(
  Map<String, dynamic> json,
) => StarTransactionTypeBotInvoicePurchase(
  userId: _readInt(json['user_id']),
  productInfo: _readObject(json['product_info'], ProductInfo.fromJson),
);