addDocument method

  1. @override
FutureOr<void> addDocument({
  1. required String collectionPath,
  2. required JsonObject json,
  3. String? changeRootName,
})
override

Implementation

@override
FutureOr<void> addDocument({
  required String collectionPath,
  required JsonObject json,
  String? changeRootName,
}) async {
  await documentMapper.jsonToDocument(
    path: collectionPath,
    json: json,
    onParsed: _onDocumentParsed,
    changeRootName: changeRootName,
  );
}