class PaymentList {
  String id;
  int method;
  String amount;
  bool isApproved;
  String orderId;
  String customerNamePay;
  String paymentUrl;
  String name;

  PaymentList(
      {required this.id,
      required this.method,
      required this.amount,
      required this.isApproved,
      required this.orderId,
      required this.customerNamePay,
      required this.paymentUrl,
      required this.name});

  factory PaymentList.createPaymentList(Map<String, dynamic> json) {
    return PaymentList(
        id: json['id'],
        method: json['method'],
        amount: json['amount'],
        isApproved: json['is_approved'],
        orderId: json['order_id'],
        customerNamePay: json['customer_name'],
        paymentUrl: json['payment_url'],
        name: json['name']);
  }
}
