barely functional database with hive

This commit is contained in:
SomnusVeritas
2023-11-06 18:19:52 +01:00
parent da4dc83193
commit d1da474998
9 changed files with 114 additions and 5 deletions

View File

@@ -3,4 +3,14 @@ class CookingStep {
final String description;
CookingStep({required this.title, this.description = ''});
factory CookingStep.fromJson(Map<String, dynamic> json) => CookingStep(
title: json['title'] as String,
description: json['description'] as String,
);
Map<String, dynamic> toJson() => {
'title': title,
'description': description,
};
}