Sale constructor

Sale({
  1. String? merchantOrderId,
  2. Customer? customer,
  3. Payment? payment,
})

Implementation

Sale({
  this.merchantOrderId,
  this.customer,
  this.payment,
}) {
  if (this.customer == null) this.customer = Customer();
  if (this.payment == null) this.payment = Payment();
}