import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/invitation.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/invitation.g.dart'; @JsonSerializable() class Invitation { String? mid = ''; String? nickname = ''; String? avatar = ''; String? phone = ''; dynamic isFollow; String? createTime = ''; Invitation(); factory Invitation.fromJson(Map json) => $InvitationFromJson(json); Map toJson() => $InvitationToJson(this); @override String toString() { return jsonEncode(this); } }