Files
PiliPlus/lib/models_new/followee_votes/vote.dart
2026-05-19 12:37:46 +08:00

29 lines
601 B
Dart

import 'package:PiliPlus/models/model_owner.dart';
class FolloweeVote extends Owner {
String _name;
@override
String get name => _name;
String _face;
@override
String get face => _face;
List<int> votes;
int ctime;
FolloweeVote({
required super.mid,
required this._name,
required this._face,
required this.votes,
required this.ctime,
});
factory FolloweeVote.fromJson(Map<String, dynamic> json) => FolloweeVote(
mid: json['uid'],
name: json['name'],
face: json['face'],
votes: List<int>.from(json['votes']),
ctime: json['ctime'],
);
}