mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
26 lines
531 B
Dart
26 lines
531 B
Dart
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,
|
|
};
|
|
}
|