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.
 
 
 
 
 
 

41 lines
1.1 KiB

import 'package:json_annotation/json_annotation.dart';
part 'member_rank.g.dart';
@JsonSerializable()
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<String, dynamic> json) => MemberRank()
..id = json['id'] as String
..nextId = json['nextId'] as String
..nextName = json['nextName'] as String
..nextOrigin = json['nextOrigin'] as int
..rankContent = json['rankContent'] as String
..rankImg = json['rankImg'] as String
..rankName = json['rankName'] as String
..rankOrigin = json['rankOrigin'] as int
..status = json['status'] as bool;
Map<String, dynamic> toJson() =><String, dynamic>{
'id': this.id,
'nextId': this.nextId,
'nextName': this.nextName,
'nextOrigin': this.nextOrigin,
'rankContent': this.rankContent,
'rankImg': this.rankImg,
'rankName': this.rankName,
'rankOrigin': this.rankOrigin,
'status': this.status,
};
}