PaymentReceiptTypeStars.fromJson constructor

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

Parses a PaymentReceiptTypeStars from TDLib JSON.

Implementation

factory PaymentReceiptTypeStars.fromJson(Map<String, dynamic> json) =>
    PaymentReceiptTypeStars(
      starCount: _readInt(json['star_count']),
      transactionId: _readString(json['transaction_id']),
    );