json_hive_generator 1.0.2 json_hive_generator: ^1.0.2 copied to clipboard
Adds additional functionality to your project that will allow you to import your Hive Boxes into a JSON file and also export them back to Boxes.
Multi-platform library to add JSON import/export features for Hive
Features #
- Export Hive objects to JSON file
- Import JSON file as Hive objects
Usage #
final eventBox = await Hive.openBox<Event>('events');
/// Export all [Event]`s in Hive to JSON file
await HiveExporter<Event>(eventBox, exportFilePath).export();
/// Import all [Event]`s from JSON file to Hive
await HiveImporter<Event>(eventBox, importFilePath).import();