Files
PiliPlus/lib/models_new/followee_votes/vote.dart
bggRGjQaUbCoE 74d5e03a34 show followee votes
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-12-13 15:53:14 +08:00

24 lines
461 B
Dart

class FolloweeVote {
int uid;
String name;
String face;
List<int> votes;
int ctime;
FolloweeVote({
required this.uid,
required this.name,
required this.face,
required this.votes,
required this.ctime,
});
factory FolloweeVote.fromJson(Map<String, dynamic> json) => FolloweeVote(
uid: json['uid'],
name: json['name'],
face: json['face'],
votes: List<int>.from(json['votes']),
ctime: json['ctime'],
);
}