keyboard_info.dart 859 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'keyboard_info.g.dart';
  3. @JsonSerializable()
  4. class KeyboardInfo {
  5. //键盘id
  6. @JsonKey(name: 'id')
  7. String? id;
  8. //键盘类型 默认值 定制键盘
  9. @JsonKey(name: 'type')
  10. String? type;
  11. // 名称
  12. @JsonKey(name: 'name')
  13. String? name;
  14. // 性别
  15. @JsonKey(name: 'gender')
  16. int? gender;
  17. // 生日
  18. @JsonKey(name: 'birthday')
  19. String? birthday;
  20. // 亲密度
  21. @JsonKey(name: 'intimacy')
  22. int? intimacy;
  23. //头像
  24. @JsonKey(name: 'imageUrl')
  25. String? imageUrl;
  26. KeyboardInfo({
  27. this.id,
  28. this.type,
  29. this.name,
  30. this.gender,
  31. this.birthday,
  32. this.intimacy,
  33. this.imageUrl,
  34. });
  35. factory KeyboardInfo.fromJson(Map<String, dynamic> json) =>
  36. _$KeyboardInfoFromJson(json);
  37. Map<String, dynamic> toJson() => _$KeyboardInfoToJson(this);
  38. }