class HospitalDetail {
  String? msg;
  int? code;
  DataDetail? data;

  HospitalDetail({this.msg, this.code, this.data});

  HospitalDetail.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'] != null ? new DataDetail.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class DataDetail {
  String? id;
  int? isDel;
  String? createDate;
  String? createUser;
  String? updateDate;
  String? updateUser;
  String? tenantId;
  String? clinicName;
  String? logoPic;
  String? clinicLinkName;
  String? clinicLinkPhone;
  String? city;
  String? cityCode;
  String? detailedAddress;
  String? businessLicenseName;
  String? businessLicenseCode;
  String? medicalInstitutionCode;
  String? businessStartTime;
  String? businessEndTime;
  String? clinicWorkingDays;
  int? operatingYears;
  int? dentalChairsNum;
  int? storeArea;
  String? storeIntroduction;
  String? bannerPic;
  String? medicalInstitutionOccupationalLicense;
  String? scannedCopyBusinessLicense;
  List<String>? clinicWorkingDaysList;
  String? bannerPic1;
  String? bannerPic2;
  String? bannerPic3;

  DataDetail(
      {this.id,
        this.isDel,
        this.createDate,
        this.createUser,
        this.updateDate,
        this.updateUser,
        this.tenantId,
        this.clinicName,
        this.logoPic,
        this.clinicLinkName,
        this.clinicLinkPhone,
        this.city,
        this.cityCode,
        this.detailedAddress,
        this.businessLicenseName,
        this.businessLicenseCode,
        this.medicalInstitutionCode,
        this.businessStartTime,
        this.businessEndTime,
        this.clinicWorkingDays,
        this.operatingYears,
        this.dentalChairsNum,
        this.storeArea,
        this.storeIntroduction,
        this.bannerPic,
        this.medicalInstitutionOccupationalLicense,
        this.scannedCopyBusinessLicense,
        this.clinicWorkingDaysList,
        this.bannerPic1,
        this.bannerPic2,
        this.bannerPic3});

  DataDetail.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    isDel = json['isDel'];
    createDate = json['createDate'];
    createUser = json['createUser'];
    updateDate = json['updateDate'];
    updateUser = json['updateUser'];
    tenantId = json['tenantId'];
    clinicName = json['clinicName'];
    logoPic = json['logoPic'];
    clinicLinkName = json['clinicLinkName'];
    clinicLinkPhone = json['clinicLinkPhone'];
    city = json['city'];
    cityCode = json['cityCode'];
    detailedAddress = json['detailedAddress'];
    businessLicenseName = json['businessLicenseName'];
    businessLicenseCode = json['businessLicenseCode'];
    medicalInstitutionCode = json['medicalInstitutionCode'];
    businessStartTime = json['businessStartTime'];
    businessEndTime = json['businessEndTime'];
    clinicWorkingDays = json['clinicWorkingDays'];
    operatingYears = json['operatingYears'];
    dentalChairsNum = json['dentalChairsNum'];
    storeArea = json['storeArea'];
    storeIntroduction = json['storeIntroduction'];
    bannerPic = json['bannerPic'];
    medicalInstitutionOccupationalLicense =
    json['medicalInstitutionOccupationalLicense'];
    scannedCopyBusinessLicense = json['scannedCopyBusinessLicense'];
    clinicWorkingDaysList = json['clinicWorkingDaysList'].cast<String>();
    bannerPic1 = json['bannerPic1'];
    bannerPic2 = json['bannerPic2'];
    bannerPic3 = json['bannerPic3'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['isDel'] = this.isDel;
    data['createDate'] = this.createDate;
    data['createUser'] = this.createUser;
    data['updateDate'] = this.updateDate;
    data['updateUser'] = this.updateUser;
    data['tenantId'] = this.tenantId;
    data['clinicName'] = this.clinicName;
    data['logoPic'] = this.logoPic;
    data['clinicLinkName'] = this.clinicLinkName;
    data['clinicLinkPhone'] = this.clinicLinkPhone;
    data['city'] = this.city;
    data['cityCode'] = this.cityCode;
    data['detailedAddress'] = this.detailedAddress;
    data['businessLicenseName'] = this.businessLicenseName;
    data['businessLicenseCode'] = this.businessLicenseCode;
    data['medicalInstitutionCode'] = this.medicalInstitutionCode;
    data['businessStartTime'] = this.businessStartTime;
    data['businessEndTime'] = this.businessEndTime;
    data['clinicWorkingDays'] = this.clinicWorkingDays;
    data['operatingYears'] = this.operatingYears;
    data['dentalChairsNum'] = this.dentalChairsNum;
    data['storeArea'] = this.storeArea;
    data['storeIntroduction'] = this.storeIntroduction;
    data['bannerPic'] = this.bannerPic;
    data['medicalInstitutionOccupationalLicense'] =
        this.medicalInstitutionOccupationalLicense;
    data['scannedCopyBusinessLicense'] = this.scannedCopyBusinessLicense;
    data['clinicWorkingDaysList'] = this.clinicWorkingDaysList;
    data['bannerPic1'] = this.bannerPic1;
    data['bannerPic2'] = this.bannerPic2;
    data['bannerPic3'] = this.bannerPic3;
    return data;
  }
}
