mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
36 lines
752 B
Dart
36 lines
752 B
Dart
class Upper {
|
|
int? mid;
|
|
String? name;
|
|
String? face;
|
|
bool? followed;
|
|
int? vipType;
|
|
int? vipStatue;
|
|
|
|
Upper({
|
|
this.mid,
|
|
this.name,
|
|
this.face,
|
|
this.followed,
|
|
this.vipType,
|
|
this.vipStatue,
|
|
});
|
|
|
|
factory Upper.fromJson(Map<String, dynamic> json) => Upper(
|
|
mid: json['mid'] as int?,
|
|
name: json['name'] as String?,
|
|
face: json['face'] as String?,
|
|
followed: json['followed'] as bool?,
|
|
vipType: json['vip_type'] as int?,
|
|
vipStatue: json['vip_statue'] as int?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'mid': mid,
|
|
'name': name,
|
|
'face': face,
|
|
'followed': followed,
|
|
'vip_type': vipType,
|
|
'vip_statue': vipStatue,
|
|
};
|
|
}
|