Files
PiliPlus/lib/models/space_fav/list.dart
bggRGjQaUbCoE f77088b870 Refactor member page (#3)
* refactor: member page

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2024-10-17 11:18:59 +08:00

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);
}