动我项目仓库 flutter:3.22 dart:3.4.4
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.
 
 
 
 
 
 

24 lines
555 B

class UserData {
int? id;
String? nickName;
String? token;
int? phone;
UserData({this.id, this.nickName, this.token, this.phone});
UserData.fromJson(Map<String, dynamic> json) {
id = json['id'];
nickName = json['nickName'];
token = json['token'];
phone = json['phone'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['nickName'] = this.nickName;
data['token'] = this.token;
data['phone'] = this.phone;
return data;
}
}