class QrScanLocationData {
  int? siteId;
  String? siteName;
  int? buildingId;
  String? buildingName;
  int? floorId;
  String? floorName;
  int? departmentId;
  String? departmentName;
  int? roomId;
  String? roomName;
  String? locationDescription;

  QrScanLocationData({
    this.siteId,
    this.siteName,
    this.buildingId,
    this.buildingName,
    this.floorId,
    this.floorName,
    this.departmentId,
    this.departmentName,
    this.roomId,
    this.roomName,
    this.locationDescription,
  });

  factory QrScanLocationData.fromJson(Map<String, dynamic> json) {
    return QrScanLocationData(
      siteId: json['siteId'],
      siteName: json['siteName'],
      buildingId: json['buildingId'],
      buildingName: json['buildingName'],
      floorId: json['floorId'],
      floorName: json['floorName'],
      departmentId: json['departmentId'],
      departmentName: json['departmentName'],
      roomId: json['roomId'],
      roomName: json['roomName'],
      locationDescription: json['locationDescription'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'siteId': siteId,
      'siteName': siteName,
      'buildingId': buildingId,
      'buildingName': buildingName,
      'floorId': floorId,
      'floorName': floorName,
      'departmentId': departmentId,
      'departmentName': departmentName,
      'roomId': roomId,
      'roomName': roomName,
      'locationDescription': locationDescription,
    };
  }
}

