app/lib/data/app_torrent_data.dart

34 lines
691 B
Dart
Raw Normal View History

2024-02-24 18:18:35 +08:00
/// name : "Data.p4k"
2024-10-07 12:29:57 +08:00
/// update_at : "2024-09-03 15:00"
/// url : "https://p4k.42kit.com/3.24.1-LIVE.9234446/Data.p4k.torrent"
/// info : "3.24.1-LIVE.9234446"
2024-02-24 18:18:35 +08:00
class AppTorrentData {
AppTorrentData({
2024-12-14 13:48:24 +08:00
this.name,
this.updateAt,
this.url,
this.info,
});
2024-02-24 18:18:35 +08:00
AppTorrentData.fromJson(dynamic json) {
name = json['name'];
updateAt = json['update_at'];
url = json['url'];
2024-10-07 12:29:57 +08:00
info = json['info'];
2024-02-24 18:18:35 +08:00
}
String? name;
String? updateAt;
String? url;
2024-10-07 12:29:57 +08:00
String? info;
2024-02-24 18:18:35 +08:00
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['name'] = name;
map['update_at'] = updateAt;
map['url'] = url;
2024-10-07 12:29:57 +08:00
map['info'] = info;
2024-02-24 18:18:35 +08:00
return map;
}
2024-12-14 13:48:24 +08:00
}