mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
18 lines
340 B
Dart
18 lines
340 B
Dart
class UserInfo {
|
|
String face;
|
|
String uname;
|
|
String nameColor;
|
|
|
|
UserInfo({
|
|
required this.face,
|
|
required this.uname,
|
|
required this.nameColor,
|
|
});
|
|
|
|
factory UserInfo.fromJson(Map<String, dynamic> json) => UserInfo(
|
|
face: json['face'],
|
|
uname: json['uname'],
|
|
nameColor: json['name_color'] ?? '#666666',
|
|
);
|
|
}
|