mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
feat: live search
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
33
lib/models/live/live_search/user_item.dart
Normal file
33
lib/models/live/live_search/user_item.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
class LiveSearchUserItemModel {
|
||||
String? face;
|
||||
String? name;
|
||||
int? liveStatus;
|
||||
String? areaName;
|
||||
int? fansNum;
|
||||
List? roomTags;
|
||||
int? roomid;
|
||||
String? link;
|
||||
|
||||
LiveSearchUserItemModel({
|
||||
this.face,
|
||||
this.name,
|
||||
this.liveStatus,
|
||||
this.areaName,
|
||||
this.fansNum,
|
||||
this.roomTags,
|
||||
this.roomid,
|
||||
this.link,
|
||||
});
|
||||
|
||||
factory LiveSearchUserItemModel.fromJson(Map<String, dynamic> json) =>
|
||||
LiveSearchUserItemModel(
|
||||
face: json['face'] as String?,
|
||||
name: json['name'] as String?,
|
||||
liveStatus: json['live_status'] as int?,
|
||||
areaName: json['areaName'] as String?,
|
||||
fansNum: json['fansNum'] as int?,
|
||||
roomTags: json['roomTags'],
|
||||
roomid: json['roomid'] as int?,
|
||||
link: json['link'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user