keyboard_info.dart 926 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. @JsonKey(name: 'isChoose')
  27. bool? isChoose;
  28. KeyboardInfo({
  29. this.id,
  30. this.type,
  31. this.name,
  32. this.gender,
  33. this.birthday,
  34. this.intimacy,
  35. this.imageUrl,
  36. this.isChoose,
  37. });
  38. factory KeyboardInfo.fromJson(Map<String, dynamic> json) =>
  39. _$KeyboardInfoFromJson(json);
  40. Map<String, dynamic> toJson() => _$KeyboardInfoToJson(this);
  41. }