28 lines
763 B
Dart
28 lines
763 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;
|
|
|
|
CharacterInfoBean(this.icon, this.intimacy, this.characterId, this.characterName, this.gender, this.lookCount, this.bgUrl, this.biography,
|
|
this.prologue, this.label);
|
|
|
|
factory CharacterInfoBean.fromJson(Map<String, dynamic> json) => _$CharacterInfoBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$CharacterInfoBeanToJson(this);
|
|
}
|