barely functional database with hive
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user