class LoginEntity { int code; String error; String username; String createdAt; String objectId; String userType; String userWeiXin; LoginEntity({this.code, this.error, this.username, this.createdAt, this.objectId, this.userType, this.userWeiXin}); LoginEntity.fromJson(Map json) { code = json['code']; error = json['error']; username = json['username']; createdAt = json['createdAt']; objectId = json['objectId']; userType = json['userType']; userWeiXin = json['userWeiXin']; } Map toJson() { final Map data = new Map(); data['code'] = this.code; data['error'] = this.error; data['username'] = this.username; data['createdAt'] = this.createdAt; data['objectId'] = this.objectId; data['userType'] = this.userType; data['userWeiXin'] = this.userWeiXin; return data; } }