toDocument method

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

Implementation

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