added more blocs
This commit is contained in:
21
lib/repositories/account/models/category.dart
Normal file
21
lib/repositories/account/models/category.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
class Category {
|
||||
String label;
|
||||
String color;
|
||||
|
||||
Category({
|
||||
this.label = '',
|
||||
this.color = '',
|
||||
});
|
||||
|
||||
factory Category.fromJson(Map<String, dynamic> json) {
|
||||
return Category(
|
||||
label: json['label'],
|
||||
color: json['color']
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, String> toJson() => {
|
||||
'label': label,
|
||||
'color': color,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user