import 'package:json_annotation/json_annotation.dart'; part 'member_rank.g.dart'; @JsonSerializable(explicitToJson: true) class MemberRank { MemberRank(); String? id; String? nextId; String? nextName; int? nextOrigin; String? rankContent; String? rankImg; String? rankName; int? rankOrigin; bool? status; factory MemberRank.fromJson(Map json) => _$MemberRankFromJson(json); Map toJson() => _$MemberRankToJson(this); }