json_hive_generator 1.0.0 copy "json_hive_generator: ^1.0.0" to clipboard
json_hive_generator: ^1.0.0 copied to clipboard

Add-on import/export feature for hive to json

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');

  /// This is an example of how to export all [Event]`s in Hive to JSON file
  await HiveExporter<Event>(eventBox, exportFilePath).export();

  /// This is an example of how to import all [Event]`s from JSON file to Hive
  await HiveImporter<Event>(eventBox, importFilePath).import();
5
likes
0
pub points
56%
popularity

Publisher

unverified uploader

Add-on import/export feature for hive to json

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, hive, path_provider

More

Packages that depend on json_hive_generator