json_hive_generator 1.0.2 copy "json_hive_generator: ^1.0.2" to clipboard
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();

Learn more #

5
likes
150
pub points
50%
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