20 lines
489 B
Dart
20 lines
489 B
Dart
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<String, dynamic> json) => _$MessageBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$MessageBeanToJson(this);
|
|
}
|