You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/models/new_models/room_model.dart

49 lines
1.2 KiB
Dart

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;
// }
// }