mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
37 lines
656 B
Dart
37 lines
656 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'nameplate.dart';
|
|
import 'official_verify.dart';
|
|
import 'pendant.dart';
|
|
import 'vip.dart';
|
|
|
|
part 'author.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Author {
|
|
int? mid;
|
|
String? name;
|
|
String? face;
|
|
Pendant? pendant;
|
|
@JsonKey(name: 'official_verify')
|
|
OfficialVerify? officialVerify;
|
|
Nameplate? nameplate;
|
|
Vip? vip;
|
|
|
|
Author({
|
|
this.mid,
|
|
this.name,
|
|
this.face,
|
|
this.pendant,
|
|
this.officialVerify,
|
|
this.nameplate,
|
|
this.vip,
|
|
});
|
|
|
|
factory Author.fromJson(Map<String, dynamic> json) {
|
|
return _$AuthorFromJson(json);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => _$AuthorToJson(this);
|
|
}
|