copy method

AdjustmentModel copy({
  1. int? orderAmount,
  2. int? cardFee,
  3. int? vat,
  4. int? serviceFee,
  5. int? incomeAmount,
})

Implementation

AdjustmentModel copy({
  int? orderAmount,
  int? cardFee,
  int? vat,
  int? serviceFee,
  int? incomeAmount,
}) {
  return AdjustmentModel(
    orderAmount: orderAmount ?? this.orderAmount,
    cardFee: cardFee ?? this.cardFee,
    vat: vat ?? this.vat,
    serviceFee: serviceFee ?? this.serviceFee,
    incomeAmount: incomeAmount ?? this.incomeAmount,
  );
}