

class QrParkingResponseModel {
  dynamic totalRecords;
  dynamic nRowID;
  int? qRParkingID;
  String? description;
  String? descriptionN;
  dynamic qRCompare;
  dynamic qRValue;
  String? imagePath;
  bool? isActive;
  int? parkingID;
  int? branchID;
  int? companyID;
  int? buildingID;
  int? rowID;
  int? gateID;
  int? floorID;
  dynamic imagePath1;
  int? createdBy;
  String? createdOn;
  dynamic editedBy;
  dynamic editedOn;
  String? parkingDescription;
  String? parkingDescriptionN;
  String? gateDescription;
  String? gateDescriptionN;
  String? branchDescription;
  String? branchDescriptionN;
  String? companyDescription;
  String? companyDescriptionN;
  String? rowDescription;
  String? rowDescriptionN;
  String? floorDescription;
  String? floorDescriptionN;
  String? buildingDescription;
  String? buildingDescriptionN;
  String? qRParkingCode;
  String? parkingCode;
  double? latitude;
  double? longitude;
  String? qRImageStr;

  QrParkingResponseModel({
    this.totalRecords,
    this.nRowID,
    this.qRParkingID,
    this.description,
    this.descriptionN,
    this.qRCompare,
    this.qRValue,
    this.imagePath,
    this.isActive,
    this.parkingID,
    this.branchID,
    this.companyID,
    this.buildingID,
    this.rowID,
    this.gateID,
    this.floorID,
    this.imagePath1,
    this.createdBy,
    this.createdOn,
    this.editedBy,
    this.editedOn,
    this.parkingDescription,
    this.parkingDescriptionN,
    this.gateDescription,
    this.gateDescriptionN,
    this.branchDescription,
    this.branchDescriptionN,
    this.companyDescription,
    this.companyDescriptionN,
    this.rowDescription,
    this.rowDescriptionN,
    this.floorDescription,
    this.floorDescriptionN,
    this.buildingDescription,
    this.buildingDescriptionN,
    this.qRParkingCode,
    this.parkingCode,
    this.latitude,
    this.longitude,
    this.qRImageStr,
  });

  QrParkingResponseModel.fromJson(Map<String, dynamic> json) {
    totalRecords = json['TotalRecords'];
    nRowID = json['nRowID'];
    qRParkingID = json['QRParkingID'];
    description = json['Description'];
    descriptionN = json['DescriptionN'];
    qRCompare = json['QRCompare'];
    qRValue = json['QRValue'];
    imagePath = json['ImagePath'];
    isActive = json['IsActive'];
    parkingID = json['ParkingID'];
    branchID = json['BranchID'];
    companyID = json['CompanyID'];
    buildingID = json['BuildingID'];
    rowID = json['RowID'];
    gateID = json['GateID'];
    floorID = json['FloorID'];
    imagePath1 = json['ImagePath1'];
    createdBy = json['CreatedBy'];
    createdOn = json['CreatedOn'];
    editedBy = json['EditedBy'];
    editedOn = json['EditedOn'];
    parkingDescription = json['ParkingDescription'];
    parkingDescriptionN = json['ParkingDescriptionN'];
    gateDescription = json['GateDescription'];
    gateDescriptionN = json['GateDescriptionN'];
    branchDescription = json['BranchDescription'];
    branchDescriptionN = json['BranchDescriptionN'];
    companyDescription = json['CompanyDescription'];
    companyDescriptionN = json['CompanyDescriptionN'];
    rowDescription = json['RowDescription'];
    rowDescriptionN = json['RowDescriptionN'];
    floorDescription = json['FloorDescription'];
    floorDescriptionN = json['FloorDescriptionN'];
    buildingDescription = json['BuildingDescription'];
    buildingDescriptionN = json['BuildingDescriptionN'];
    qRParkingCode = json['QRParkingCode'];
    parkingCode = json['ParkingCode'];
    latitude = _toDouble(json['Latitude']);
    longitude = _toDouble(json['Longitude']);
    qRImageStr = json['QRImageStr'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['TotalRecords'] = totalRecords;
    data['nRowID'] = nRowID;
    data['QRParkingID'] = qRParkingID;
    data['Description'] = description;
    data['DescriptionN'] = descriptionN;
    data['QRCompare'] = qRCompare;
    data['QRValue'] = qRValue;
    data['ImagePath'] = imagePath;
    data['IsActive'] = isActive;
    data['ParkingID'] = parkingID;
    data['BranchID'] = branchID;
    data['CompanyID'] = companyID;
    data['BuildingID'] = buildingID;
    data['RowID'] = rowID;
    data['GateID'] = gateID;
    data['FloorID'] = floorID;
    data['ImagePath1'] = imagePath1;
    data['CreatedBy'] = createdBy;
    data['CreatedOn'] = createdOn;
    data['EditedBy'] = editedBy;
    data['EditedOn'] = editedOn;
    data['ParkingDescription'] = parkingDescription;
    data['ParkingDescriptionN'] = parkingDescriptionN;
    data['GateDescription'] = gateDescription;
    data['GateDescriptionN'] = gateDescriptionN;
    data['BranchDescription'] = branchDescription;
    data['BranchDescriptionN'] = branchDescriptionN;
    data['CompanyDescription'] = companyDescription;
    data['CompanyDescriptionN'] = companyDescriptionN;
    data['RowDescription'] = rowDescription;
    data['RowDescriptionN'] = rowDescriptionN;
    data['FloorDescription'] = floorDescription;
    data['FloorDescriptionN'] = floorDescriptionN;
    data['BuildingDescription'] = buildingDescription;
    data['BuildingDescriptionN'] = buildingDescriptionN;
    data['QRParkingCode'] = qRParkingCode;
    data['ParkingCode'] = parkingCode;
    data['Latitude'] = latitude;
    data['Longitude'] = longitude;
    data['QRImageStr'] = qRImageStr;
    return data;
  }

  static double? _toDouble(dynamic v) {
    if (v == null) return null;
    if (v is double) return v;
    if (v is int) return v.toDouble();
    return double.tryParse(v.toString());
  }
}

