fromJson static method
Inherited by: PaymentReceiptTypeRegular PaymentReceiptTypeStars
Implementation
static PaymentReceiptTypeRegular? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PaymentReceiptTypeRegular(
paymentProviderUserId: (json['payment_provider_user_id'] as int?) ?? 0,
invoice: Invoice.fromJson(tdMapFromJson(json['invoice'])),
orderInfo: OrderInfo.fromJson(tdMapFromJson(json['order_info'])),
shippingOption: ShippingOption.fromJson(
tdMapFromJson(json['shipping_option']),
),
credentialsTitle: (json['credentials_title'] as String?) ?? '',
tipAmount: (json['tip_amount'] as int?) ?? 0,
);
}