Files
PiliPlus/lib/models_new/live/live_superchat/user_info.dart
dom d10c737a38 show img menu
opt img placeholder

opt player gesture

opt pref

tweaks

Signed-off-by: dom <githubaccount56556@proton.me>
2026-01-10 10:21:06 +08:00

24 lines
467 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',
);
Map<String, dynamic> toJson() => <String, dynamic>{
'face': face,
'uname': uname,
'name_color': nameColor,
};
}