mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
71 lines
1.2 KiB
Dart
71 lines
1.2 KiB
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'upper.dart';
|
|
|
|
part 'list.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class FavList {
|
|
int? id;
|
|
int? fid;
|
|
int? mid;
|
|
int? attr;
|
|
@JsonKey(name: 'attr_desc')
|
|
String? attrDesc;
|
|
String? title;
|
|
String? cover;
|
|
Upper? upper;
|
|
@JsonKey(name: 'cover_type')
|
|
int? coverType;
|
|
String? intro;
|
|
int? ctime;
|
|
int? mtime;
|
|
int? state;
|
|
@JsonKey(name: 'fav_state')
|
|
int? favState;
|
|
@JsonKey(name: 'media_count')
|
|
int? mediaCount;
|
|
@JsonKey(name: 'view_count')
|
|
int? viewCount;
|
|
int? vt;
|
|
@JsonKey(name: 'is_top')
|
|
bool? isTop;
|
|
@JsonKey(name: 'recent_fav')
|
|
dynamic recentFav;
|
|
@JsonKey(name: 'play_switch')
|
|
int? playSwitch;
|
|
int? type;
|
|
String? link;
|
|
String? bvid;
|
|
|
|
FavList({
|
|
this.id,
|
|
this.fid,
|
|
this.mid,
|
|
this.attr,
|
|
this.attrDesc,
|
|
this.title,
|
|
this.cover,
|
|
this.upper,
|
|
this.coverType,
|
|
this.intro,
|
|
this.ctime,
|
|
this.mtime,
|
|
this.state,
|
|
this.favState,
|
|
this.mediaCount,
|
|
this.viewCount,
|
|
this.vt,
|
|
this.isTop,
|
|
this.recentFav,
|
|
this.playSwitch,
|
|
this.type,
|
|
this.link,
|
|
this.bvid,
|
|
});
|
|
|
|
factory FavList.fromJson(Map<String, dynamic> json) => _$ListFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$ListToJson(this);
|
|
}
|