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 (workflowId != null) {
    theDocument["workflowId"] = workflowId;
  } else {
    theDocument["workflowId"] = null;
  }
  theDocument['conditions'] =
      conditions == null ? null : conditions!.toDocument();

  return theDocument;
}