import 'package:test_sa/models/base.dart';

class Rooms extends Base {
  int id;
  String name;
  int value;

  Rooms({this.id, this.name, this.value});

  Rooms.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    value = json['value'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['value'] = this.value;
    return data;
  }
}
//
// class Rooms extends Base {
//   int id;
//   int departmentId;
//   int clientRoomId;
//   String roomName;
//
//   Rooms({this.id, this.departmentId, this.clientRoomId, this.roomName});
//
//   Rooms.fromJson(Map<String, dynamic> json) {
//     id = json['id'];
//     departmentId = json['departmentId'];
//     clientRoomId = json['clientRoomId'];
//     roomName = json['roomName'];
//   }
//
//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     data['id'] = this.id;
//     data['departmentId'] = this.departmentId;
//     data['clientRoomId'] = this.clientRoomId;
//     data['roomName'] = this.roomName;
//     return data;
//   }
// }
