json_hive_generator 1.0.1 copy "json_hive_generator: ^1.0.1" to clipboard
json_hive_generator: ^1.0.1 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 #

Use this plugin in your Flutter app to:

  • 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();
5
likes
140
pub points
59%
popularity

Publisher

unverified uploader

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.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, hive, path_provider

More

Packages that depend on json_hive_generator