fromJson static method
Inherited by: PaymentReceiptTypeRegular PaymentReceiptTypeStars
Implementation
static PaymentReceiptTypeStars? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PaymentReceiptTypeStars(
starCount: (json['star_count'] as int?) ?? 0,
transactionId: (json['transaction_id'] as String?) ?? '',
);
}