StarTransactionTypeBotInvoiceSale.fromJson constructor
Parses a StarTransactionTypeBotInvoiceSale from TDLib JSON.
Implementation
factory StarTransactionTypeBotInvoiceSale.fromJson(
Map<String, dynamic> json,
) => StarTransactionTypeBotInvoiceSale(
userId: _readInt(json['user_id']),
productInfo: _readObject(json['product_info'], ProductInfo.fromJson),
invoicePayload: _readString(json['invoice_payload']),
affiliate: _readOptional(json['affiliate'], AffiliateInfo.fromJson),
);