Files
Krezus/lib/repositories/account/models/category.dart
2024-02-07 18:54:48 +01:00

22 lines
340 B
Dart

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,
};
}