mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
63
lib/models/space/tab.dart
Normal file
63
lib/models/space/tab.dart
Normal file
@@ -0,0 +1,63 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'tab.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Tab {
|
||||
bool? archive;
|
||||
bool? article;
|
||||
bool? clip;
|
||||
bool? album;
|
||||
bool? favorite;
|
||||
bool? bangumi;
|
||||
bool? coin;
|
||||
bool? like;
|
||||
bool? community;
|
||||
bool? dyn;
|
||||
bool? audios;
|
||||
bool? shop;
|
||||
bool? mall;
|
||||
@JsonKey(name: 'ugc_season')
|
||||
bool? ugcSeason;
|
||||
bool? comic;
|
||||
bool? cheese;
|
||||
@JsonKey(name: 'sub_comic')
|
||||
bool? subComic;
|
||||
bool? activity;
|
||||
bool? series;
|
||||
bool? charging;
|
||||
bool? opus;
|
||||
@JsonKey(name: 'cheese_video')
|
||||
bool? cheeseVideo;
|
||||
bool? brand;
|
||||
|
||||
Tab({
|
||||
this.archive,
|
||||
this.article,
|
||||
this.clip,
|
||||
this.album,
|
||||
this.favorite,
|
||||
this.bangumi,
|
||||
this.coin,
|
||||
this.like,
|
||||
this.community,
|
||||
this.dyn,
|
||||
this.audios,
|
||||
this.shop,
|
||||
this.mall,
|
||||
this.ugcSeason,
|
||||
this.comic,
|
||||
this.cheese,
|
||||
this.subComic,
|
||||
this.activity,
|
||||
this.series,
|
||||
this.charging,
|
||||
this.opus,
|
||||
this.cheeseVideo,
|
||||
this.brand,
|
||||
});
|
||||
|
||||
factory Tab.fromJson(Map<String, dynamic> json) => _$TabFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$TabToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user