app/lib/data/countdown_festival_item_data.dart

24 lines
464 B
Dart
Raw Normal View History

2023-11-03 00:18:45 +08:00
class CountdownFestivalItemData {
CountdownFestivalItemData({
this.name,
this.time,
this.icon,});
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;
}
}