copyWith method

OrderReferencesEntity copyWith({
  1. String? paymentReference,
  2. String? shipmentReference,
  3. String? deliveryReference,
})

Implementation

OrderReferencesEntity copyWith({
  String? paymentReference,
  String? shipmentReference,
  String? deliveryReference,
}) {
  return OrderReferencesEntity(
    paymentReference: paymentReference ?? this.paymentReference,
    shipmentReference: shipmentReference ?? this.shipmentReference,
    deliveryReference: deliveryReference ?? this.deliveryReference,
  );
}