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