mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 09:06:36 +08:00
24 lines
420 B
Dart
24 lines
420 B
Dart
class Author {
|
|
int? mid;
|
|
String? name;
|
|
String? face;
|
|
|
|
Author({
|
|
this.mid,
|
|
this.name,
|
|
this.face,
|
|
});
|
|
|
|
factory Author.fromJson(Map<String, dynamic> json) => Author(
|
|
mid: json['mid'] as int?,
|
|
name: json['name'] as String?,
|
|
face: json['face'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'mid': mid,
|
|
'name': name,
|
|
'face': face,
|
|
};
|
|
}
|