mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 01:26:59 +08:00
refa: live page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
25
lib/models/live/live_feed_index/avatar.dart
Normal file
25
lib/models/live/live_feed_index/avatar.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
class Avatar {
|
||||
String? cover;
|
||||
String? event;
|
||||
String? text;
|
||||
int? uid;
|
||||
String? url;
|
||||
|
||||
Avatar({this.cover, this.event, this.text, this.uid, this.url});
|
||||
|
||||
factory Avatar.fromJson(Map<String, dynamic> json) => Avatar(
|
||||
cover: json['cover'] as String?,
|
||||
event: json['event'] as String?,
|
||||
text: json['text'] as String?,
|
||||
uid: json['uid'] as int?,
|
||||
url: json['url'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'cover': cover,
|
||||
'event': event,
|
||||
'text': text,
|
||||
'uid': uid,
|
||||
'url': url,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user