mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
show live rank
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
31
lib/models_new/live/live_contribution_rank/item.dart
Normal file
31
lib/models_new/live/live_contribution_rank/item.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import 'package:PiliPlus/models_new/live/live_contribution_rank/medal_info.dart';
|
||||
|
||||
class LiveContributionRankItem {
|
||||
int? uid;
|
||||
String? name;
|
||||
String? face;
|
||||
int? rank;
|
||||
int? score;
|
||||
MedalInfo? medalInfo;
|
||||
|
||||
LiveContributionRankItem({
|
||||
this.uid,
|
||||
this.name,
|
||||
this.face,
|
||||
this.rank,
|
||||
this.score,
|
||||
this.medalInfo,
|
||||
});
|
||||
|
||||
factory LiveContributionRankItem.fromJson(Map<String, dynamic> json) =>
|
||||
LiveContributionRankItem(
|
||||
uid: json['uid'] as int?,
|
||||
name: json['name'] as String?,
|
||||
face: json['face'] as String?,
|
||||
rank: json['rank'] as int?,
|
||||
score: json['score'] as int?,
|
||||
medalInfo: json['medal_info'] == null
|
||||
? null
|
||||
: MedalInfo.fromJson(json['medal_info'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user