keyboard_guide_msg.dart 665 B

123456789101112131415161718192021222324252627282930
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'keyboard_guide_msg.g.dart';
  3. /// 引导消息实体类
  4. @JsonSerializable()
  5. class KeyboardGuideMsg {
  6. /// 是否是我发的
  7. @JsonKey(name: 'isMe')
  8. bool isMe;
  9. /// 消息内容
  10. @JsonKey(name: 'content')
  11. String content;
  12. /// 类型
  13. @JsonKey(name: "type")
  14. String type;
  15. /// 创建时间
  16. @JsonKey(name: 'createTime')
  17. int createTime;
  18. KeyboardGuideMsg(this.isMe, this.content, this.type, this.createTime);
  19. factory KeyboardGuideMsg.fromJson(Map<String, dynamic> json) =>
  20. _$KeyboardGuideMsgFromJson(json);
  21. Map<String, dynamic> toJson() => _$KeyboardGuideMsgToJson(this);
  22. }