You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
742 B
32 lines
742 B
10 months ago
|
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<String, dynamic> json) => $MessageFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => $MessageToJson(this);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return jsonEncode(this);
|
||
|
}
|
||
|
}
|