mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
49 lines
1.3 KiB
Dart
49 lines
1.3 KiB
Dart
import 'package:PiliPlus/models/dynamics/up.dart';
|
|
import 'package:PiliPlus/models/model_avatar.dart';
|
|
|
|
class FollowItemModel extends UpItem {
|
|
int? attribute;
|
|
int? mtime;
|
|
dynamic tag;
|
|
int? special;
|
|
String? sign;
|
|
BaseOfficialVerify? officialVerify;
|
|
Vip? vip;
|
|
String? followTime;
|
|
|
|
FollowItemModel({
|
|
required super.mid,
|
|
this.attribute,
|
|
this.mtime,
|
|
this.tag,
|
|
this.special,
|
|
super.uname,
|
|
super.face,
|
|
this.sign,
|
|
this.officialVerify,
|
|
this.vip,
|
|
this.followTime,
|
|
});
|
|
|
|
factory FollowItemModel.fromJson(Map<String, dynamic> json) =>
|
|
FollowItemModel(
|
|
mid: json['mid'] as int? ?? 0,
|
|
attribute: json['attribute'] as int?,
|
|
mtime: json['mtime'] as int?,
|
|
tag: json['tag'] as dynamic,
|
|
special: json['special'] as int?,
|
|
uname: json['uname'] as String?,
|
|
face: json['face'] as String?,
|
|
sign: json['sign'] as String?,
|
|
officialVerify: json['official_verify'] == null
|
|
? null
|
|
: BaseOfficialVerify.fromJson(
|
|
json['official_verify'] as Map<String, dynamic>,
|
|
),
|
|
vip: json['vip'] == null
|
|
? null
|
|
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
|
|
followTime: json['follow_time'] as String?,
|
|
);
|
|
}
|