mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-29 06:45:54 +08:00
36 lines
806 B
Dart
36 lines
806 B
Dart
class UinfoMedal {
|
|
String? name;
|
|
int? level;
|
|
int? id;
|
|
int? ruid;
|
|
String? v2MedalColorStart;
|
|
String? v2MedalColorText;
|
|
|
|
UinfoMedal({
|
|
this.name,
|
|
this.level,
|
|
this.id,
|
|
this.ruid,
|
|
this.v2MedalColorStart,
|
|
this.v2MedalColorText,
|
|
});
|
|
|
|
factory UinfoMedal.fromJson(Map<String, dynamic> json) => UinfoMedal(
|
|
name: json['name'] as String?,
|
|
level: json['level'] as int?,
|
|
id: json['id'] as int?,
|
|
ruid: json['ruid'] as int?,
|
|
v2MedalColorStart: json['v2_medal_color_start'] as String?,
|
|
v2MedalColorText: json['v2_medal_color_text'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'name': name,
|
|
'level': level,
|
|
'id': id,
|
|
'ruid': ruid,
|
|
'v2_medal_color_start': v2MedalColorStart,
|
|
'v2_medal_color_text': v2MedalColorText,
|
|
};
|
|
}
|