toDocument method
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;
}