StarTransactionTypeBotPaidMediaPurchase.fromJson constructor

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

Parses a StarTransactionTypeBotPaidMediaPurchase from TDLib JSON.

Implementation

factory StarTransactionTypeBotPaidMediaPurchase.fromJson(
  Map<String, dynamic> json,
) => StarTransactionTypeBotPaidMediaPurchase(
  userId: _readInt(json['user_id']),
  media: _readList<PaidMedia>(
    json['media'],
    (e) => _readObject(e, PaidMedia.fromJson),
  ),
);