importJson method

  1. @override
Future<void> importJson(
  1. List<Map<String, dynamic>> json
)
override

Import a list of json objects.

The json objects must have the same structure as the objects in this collection. Otherwise an exception will be thrown.

Implementation

@override
Future<void> importJson(List<Map<String, dynamic>> json) {
  return _spanHelper.asyncWrapInSpan(
    'importJson',
    () {
      return _isarCollection.importJson(json);
    },
    dbName: _dbName,
    collectionName: name,
  );
}