import 'package:json_annotation/json_annotation.dart'; part 'message_bean.g.dart'; /// @JsonSerializable(explicitToJson: true) class MessageBean { int? messageId; String? title; String? content; String? sendDateTime; bool? isRead; MessageBean(this.messageId, this.title, this.content, this.sendDateTime, this.isRead); factory MessageBean.fromJson(Map json) => _$MessageBeanFromJson(json); Map toJson() => _$MessageBeanToJson(this); }