mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 19:46:47 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
27
lib/models/pgc/pgc_review/author.dart
Normal file
27
lib/models/pgc/pgc_review/author.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
import 'package:PiliPlus/models/model_avatar.dart' show Vip;
|
||||
|
||||
class Author {
|
||||
String? avatar;
|
||||
int? level;
|
||||
int? mid;
|
||||
String? uname;
|
||||
Vip? vip;
|
||||
|
||||
Author({
|
||||
this.avatar,
|
||||
this.level,
|
||||
this.mid,
|
||||
this.uname,
|
||||
this.vip,
|
||||
});
|
||||
|
||||
factory Author.fromJson(Map<String, dynamic> json) => Author(
|
||||
avatar: json['avatar'] as String?,
|
||||
level: json['level'] as int?,
|
||||
mid: json['mid'] as int?,
|
||||
uname: json['uname'] as String?,
|
||||
vip: json['vip'] == null
|
||||
? null
|
||||
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user