import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/member_comment.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/member_comment.g.dart'; @JsonSerializable() class MemberComment { String? content = ''; String? createTime = ''; String? createUser = ''; bool? hidden = false; String? id = ''; int? isDelete = 0; int? likes = 0; String? mid = ''; String? parentContent = ''; String? parentId = ''; String? parentMid = ''; String? parentUserAvatarUrl = ''; String? parentUserName = ''; String? relationalId = ''; int? relationalType = 0; String? updateTime = ''; String? updateUser = ''; String? userAvatarUrl = ''; String? username = ''; bool? liked = false; MemberComment(); factory MemberComment.fromJson(Map json) => $MemberCommentFromJson(json); Map toJson() => $MemberCommentToJson(this); @override String toString() { return jsonEncode(this); } }