class BackupData {
  final int version;
  final List<Map<String, dynamic>> habits;
  final List<Map<String, dynamic>> categories;
  final List<Map<String, dynamic>> habitCategories;
  final Map<String, dynamic> metadata;

  BackupData({
    this.version = 3,
    this.habits = const [],
    this.categories = const [],
    this.habitCategories = const [],
    this.metadata = const {},
  });

  Map<String, dynamic> toJson() {
    return {
      'version': version,
      'habits': habits,
      'categories': categories,
      'habit_categories': habitCategories,
      'metadata': metadata,
    };
  }
}
