class ErrorCommon { String entityName; String errorKey; int status; ErrorCommon({this.entityName, this.errorKey, this.status}); ErrorCommon.fromJson(Map json) { entityName = json['entityName']; errorKey = json['errorKey']; status = json['status']; } Map toJson() { final Map data = new Map(); data['entityName'] = this.entityName; data['errorKey'] = this.errorKey; data['status'] = this.status; return data; } }