class ProfileModel { bool isAuth; // 是否淘宝授权 ProfileModel({this.isAuth}); ProfileModel.fromJson(Map json) { isAuth = json['is_taobao_auth']; } Map toJson() { final Map data = new Map(); data['is_taobao_auth'] = this.isAuth; return data; } }