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

27 lines
681 B
Dart

import 'package:test_sa/models/base.dart';
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;
}
}