Files
PiliPlus/lib/models/space_fav/list.dart
bggRGjQaUbCoE 877732e1e7 chore: organize imports
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-04 16:27:52 +08:00

70 lines
1.3 KiB
Dart

import 'package:PiliPlus/models/space_fav/upper.dart';
import 'package:json_annotation/json_annotation.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);
}