import 'package:json_annotation/json_annotation.dart'; part 'message.g.dart'; @JsonSerializable(explicitToJson: true) 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); }