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();
Learn more
Libraries
- json_hive_generator
- Title: JSON-Hive-Generator Author: Savin, V Date: 2023 Code version: 1.0.2 Type: source code Web address: https://github.com/pocket-red-fox License: MIT License