toDocument method

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

Implementation

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