import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/message.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/message.g.dart'; @JsonSerializable() class Message { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? mid = ''; String? title = ''; String? content = ''; int? typed = 0; String? relational = ''; int? state = 0; int? isDelete = 0; bool? followed = false; Message(); factory Message.fromJson(Map json) => $MessageFromJson(json); Map toJson() => $MessageToJson(this); @override String toString() { return jsonEncode(this); } }