| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import 'package:json_annotation/json_annotation.dart';
- part 'character_info.g.dart';
- @JsonSerializable()
- class CharacterInfo {
- //人设id
- @JsonKey(name: 'id')
- String? id;
- //人设名称
- @JsonKey(name: 'name')
- String? name;
- //头像
- @JsonKey(name: 'imageUrl')
- String? imageUrl;
- // 人设描述
- @JsonKey(name: 'description')
- String? description;
- // 人设表情
- @JsonKey(name: 'emoji')
- String? emoji;
- // 是否是VIP可用
- @JsonKey(name: 'isVip')
- bool? isVip;
- // 是否锁定
- @JsonKey(name: 'isLock')
- bool? isLock;
- // 是否已添加
- @JsonKey(name: 'isAdd')
- bool? isAdd;
- // 爱好列表(定制人设)
- @JsonKey(name: "hobbies")
- List<String>? hobbies;
- // 性格列表(定制人设)
- @JsonKey(name: "characters")
- List<String>? characters;
- @JsonKey(name: "birthday")
- String? birthday;
- @JsonKey(name: "gender")
- int? gender;
- @JsonKey(name: "createTime")
- String? createTime;
- CharacterInfo({
- this.id,
- this.name,
- this.imageUrl,
- this.description,
- this.emoji,
- this.isVip,
- this.isLock,
- this.isAdd,
- this.hobbies,
- this.characters,
- this.birthday,
- this.gender,
- this.createTime,
- });
- factory CharacterInfo.fromJson(Map<String, dynamic> json) =>
- _$CharacterInfoFromJson(json);
- Map<String, dynamic> toJson() => _$CharacterInfoToJson(this);
- }
|