class UserInfoModel { int id; String roleId; String nickName; List jurisdiction; UserInfoModel({this.id, this.roleId, this.nickName, this.jurisdiction}); UserInfoModel.fromJson(Map json) { id = json['id']; roleId = json['roleId']; nickName = json['nickName']; if (json['jurisdiction'] != null) jurisdiction = json['jurisdiction'].cast(); else json['jurisdiction'] = []; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['roleId'] = this.roleId; data['nickName'] = this.nickName; data['jurisdiction'] = this.jurisdiction; return data; } }