import 'package:json_annotation/json_annotation.dart';
import 'package:get/get.dart';
part 'keyboard_info.g.dart';

@JsonSerializable()
class KeyboardInfo {
  //键盘id
  @JsonKey(name: 'id')
  String? id;

  //键盘类型 默认值 定制键盘
  @JsonKey(name: 'type')
  String? type;

  // 名称
  @JsonKey(name: 'name')
  String? name;

  // 性别
  @JsonKey(name: 'gender')
  int? gender;

  // 生日
  @JsonKey(name: 'birthday')
  String? birthday;

  // 亲密度
  @JsonKey(name: 'intimacy')
  int? intimacy;

  //设置头像时用到
  @JsonKey(name: 'imageUrl')
  String? imageUrl;

  // // 展示头像时用到
  // @JsonKey(name: 'avatar')
  // String? avatar;

  @JsonKey(name: 'isChoose')
  bool? isChoose;

  // android原生
  @JsonKey(name: 'isSelect')
  bool? isSelect;

  KeyboardInfo({
    this.id,
    this.type,
    this.name,
    this.gender,
    this.birthday,
    this.intimacy,
    this.imageUrl,
    this.isChoose,
    // this.avatar,
    this.isSelect,
  });

  factory KeyboardInfo.fromJson(Map<String, dynamic> json) =>
      _$KeyboardInfoFromJson(json);

  Map<String, dynamic> toJson() => _$KeyboardInfoToJson(this);
}
