class UserInfoModel { int id; List imgUrls; String name; String nickName; String tel; int sex; String birthday; UserInfoModel( {this.id, this.imgUrls, this.name, this.nickName, this.tel, this.sex, this.birthday}); UserInfoModel.fromJson(Map json) { id = json['id']; imgUrls = json['imgUrls'].cast(); name = json['name']; nickName = json['nickName']; tel = json['tel']; sex = json['sex']; birthday = json['birthday']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['imgUrls'] = this.imgUrls; data['name'] = this.name; data['nickName'] = this.nickName; data['tel'] = this.tel; data['sex'] = this.sex; data['birthday'] = this.birthday; return data; } }