toDocument method

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

Implementation

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