Files
PiliPlus/lib/models_new/live/live_superchat/user_info.dart
bggRGjQaUbCoE 80fa0240e9 feat: super chat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-09-03 08:43:52 +08:00

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',
);
}