toDocument method

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

Implementation

@override
Map<String, Object?> toDocument() {
  Map<String, Object?> theDocument = HashMap();
  theDocument["appID"] = appID;
  theDocument["actionType"] = actionType;
  if (feedId != null) {
    theDocument["feedId"] = feedId;
  } else {
    theDocument["feedId"] = null;
  }
  theDocument['conditions'] =
      conditions == null ? null : conditions!.toDocument();

  return theDocument;
}