mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
show followee votes
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
23
lib/models_new/followee_votes/vote.dart
Normal file
23
lib/models_new/followee_votes/vote.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
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'],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user