import 'dart:convert';

class BdProjectsHaveBdClinicsModel {
  List<BdGetProjectsHaveBdClinic>? bdGetProjectsHaveBdClinics;

  BdProjectsHaveBdClinicsModel({
    this.bdGetProjectsHaveBdClinics,
  });

  factory BdProjectsHaveBdClinicsModel.fromRawJson(String str) => BdProjectsHaveBdClinicsModel.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory BdProjectsHaveBdClinicsModel.fromJson(Map<String, dynamic> json) => BdProjectsHaveBdClinicsModel(
    bdGetProjectsHaveBdClinics: json["BD_getProjectsHaveBDClinics"] == null ? [] : List<BdGetProjectsHaveBdClinic>.from(json["BD_getProjectsHaveBDClinics"]!.map((x) => BdGetProjectsHaveBdClinic.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "BD_getProjectsHaveBDClinics": bdGetProjectsHaveBdClinics == null ? [] : List<dynamic>.from(bdGetProjectsHaveBdClinics!.map((x) => x.toJson())),
  };
}

class BdGetProjectsHaveBdClinic {
  int? rowId;
  int? id;
  int? projectId;
  int? numberOfRooms;
  bool? isActive;
  int? createdBy;
  String? createdOn;
  dynamic editedBy;
  dynamic editedOn;
  String? projectName;
  dynamic projectNameN;

  BdGetProjectsHaveBdClinic({
    this.rowId,
    this.id,
    this.projectId,
    this.numberOfRooms,
    this.isActive,
    this.createdBy,
    this.createdOn,
    this.editedBy,
    this.editedOn,
    this.projectName,
    this.projectNameN,
  });

  factory BdGetProjectsHaveBdClinic.fromRawJson(String str) => BdGetProjectsHaveBdClinic.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory BdGetProjectsHaveBdClinic.fromJson(Map<String, dynamic> json) => BdGetProjectsHaveBdClinic(
    rowId: json["RowID"],
    id: json["ID"],
    projectId: json["ProjectID"],
    numberOfRooms: json["NumberOfRooms"],
    isActive: json["IsActive"],
    createdBy: json["CreatedBy"],
    createdOn: json["CreatedOn"],
    editedBy: json["EditedBy"],
    editedOn: json["EditedON"],
    projectName: json["ProjectName"],
    projectNameN: json["ProjectNameN"],
  );

  Map<String, dynamic> toJson() => {
    "RowID": rowId,
    "ID": id,
    "ProjectID": projectId,
    "NumberOfRooms": numberOfRooms,
    "IsActive": isActive,
    "CreatedBy": createdBy,
    "CreatedOn": createdOn,
    "EditedBy": editedBy,
    "EditedON": editedOn,
    "ProjectName": projectName,
    "ProjectNameN": projectNameN,
  };
}
