app/lib/data/countdown_festival_item_data.dart

25 lines
459 B
Dart
Raw Normal View History

2023-11-03 00:18:45 +08:00
class CountdownFestivalItemData {
CountdownFestivalItemData({
2024-02-06 20:19:53 +08:00
this.name,
this.time,
this.icon,
});
2023-11-03 00:18:45 +08:00
CountdownFestivalItemData.fromJson(dynamic json) {
name = json['name'];
time = json['time'];
icon = json['icon'];
}
String? name;
int? time;
String? icon;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['name'] = name;
map['time'] = time;
map['icon'] = icon;
return map;
}
2024-02-06 20:19:53 +08:00
}