import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/member_info.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/member_info.g.dart'; @JsonSerializable() class MemberInfo { String? id = ''; String? nickname = ''; String? headimg = ''; bool? userType = false; String? sex = ''; int? level = 0; String? remark = ''; String? createTime = ''; String? birth = ''; int? organic = 0; int? age = 0; String? signature = ''; String? background = ''; int? follow = 0; int? fans = 0; int? trendTotal = 0; int? gainLikeTotal = 0; MemberInfo(); factory MemberInfo.fromJson(Map json) => $MemberInfoFromJson(json); Map toJson() => $MemberInfoToJson(this); @override String toString() { return jsonEncode(this); } }