addCollection method

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

Implementation

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