FondleTalk/lib/beans/character_info_bean.dart
2024-09-02 14:11:51 +08:00

29 lines
810 B
Dart

import 'package:json_annotation/json_annotation.dart';
import 'label_bean.dart';
part 'character_info_bean.g.dart';
///人物信息
@JsonSerializable(explicitToJson: true)
class CharacterInfoBean {
String? icon;
int? intimacy; //亲密值
int? characterId; //ID
String? characterName;
int? gender;
int? lookCount;
String? bgUrl;
String? biography;
String? prologue;
List<LabelBean>? label;
bool? memoryCardState;
CharacterInfoBean(this.icon, this.intimacy, this.characterId, this.characterName, this.gender, this.lookCount, this.bgUrl, this.biography,
this.prologue, this.label, this.memoryCardState);
factory CharacterInfoBean.fromJson(Map<String, dynamic> json) => _$CharacterInfoBeanFromJson(json);
Map<String, dynamic> toJson() => _$CharacterInfoBeanToJson(this);
}