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