toDocument method

  1. @override
Map<String, Object?> toDocument()
override

Implementation

@override
Map<String, Object?> toDocument() {
  Map<String, Object?> theDocument = HashMap();
  if (paymentReference != null) {
    theDocument["paymentReference"] = paymentReference;
  } else {
    theDocument["paymentReference"] = null;
  }
  if (shipmentReference != null) {
    theDocument["shipmentReference"] = shipmentReference;
  } else {
    theDocument["shipmentReference"] = null;
  }
  if (deliveryReference != null) {
    theDocument["deliveryReference"] = deliveryReference;
  } else {
    theDocument["deliveryReference"] = null;
  }
  return theDocument;
}