toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (_shareUrl != null) {
    map['share_url'] = _shareUrl?.toJson();
  }
  map['project_id'] = _projectId;
  map['project_name'] = _projectName;
  map['slug'] = _slug;
  map['project_title'] = _projectTitle;
  map['project_title_small'] = _projectTitleSmall;
  map['project_contact_no'] = _projectContactNo;
  map['project_type'] = _projectType;
  map['other_spaces_name'] = _otherSpacesName;
  map['location'] = _location;
  map['min_price'] = _minPrice;
  map['min_price_number'] = _minPriceNumber;
  map['min_price_type'] = _minPriceType;
  map['max_price'] = _maxPrice;
  map['sqft_min_area'] = _sqftMinArea;
  map['sqft_max_area'] = _sqftMaxArea;
  map['size_price'] = _sizePrice;
  map['available_unit'] = _availableUnit;
  map['no_of_unit'] = _noOfUnit;
  map['sqft_type'] = _sqftType;
  map['rera_number'] = _reraNumber;
  map['image'] = _image;
  map['image_full'] = _imageFull;
  map['banner_list'] = _bannerList;
  map['page_title'] = _pageTitle;
  map['location_title'] = _locationTitle;
  map['location_tag_line'] = _locationTagLine;
  map['page_description'] = _pageDescription;
  map['page_keywords'] = _pageKeywords;
  map['page_image'] = _pageImage;
  map['page_image_upload'] = _pageImageUpload;
  map['page_image_full'] = _pageImageFull;
  map['overview_title'] = _overviewTitle;
  map['is_favorite_mark'] = _isFavoriteMark;
  map['description'] = _description;
  map['description_pain'] = _descriptionPain;
  map['big_text'] = _bigText;
  map['big_text_pain'] = _bigTextPain;
  map['summary'] = _summary;
  map['amenities_description'] = _amenitiesDescription;
  map['amenities_title'] = _amenitiesTitle;
  map['amenities_tagline'] = _amenitiesTagline;
  map['amenities_image'] = _amenitiesImage;
  map['whatsapp_link'] = _whatsappLink;
  map['whatsapp_description'] = _whatsappDescription;
  map['other_project_id'] = _otherProjectId;
  map['map_slug'] = _mapSlug;
  map['map_iframe'] = _mapIframe;
  map['map_sort_description'] = _mapSortDescription;
  map['map_image'] = _mapImage;
  map['map_image_full'] = _mapImageFull;
  map['project_logo'] = _projectLogo;
  map['project_logo_full'] = _projectLogoFull;
  map['inquiry_image'] = _inquiryImage;
  map['inquiry_image_full'] = _inquiryImageFull;
  map['location_description'] = _locationDescription;
  map['address_description'] = _addressDescription;
  map['sort'] = _sort;
  map['is_active'] = _isActive;
  map['created_at'] = _createdAt;
  map['created_time'] = _createdTime;
  map['updated_at'] = _updatedAt;
  map['updated_time'] = _updatedTime;
  map['download_title'] = _downloadTitle;
  map['download_tag_line'] = _downloadTagLine;
  map['highlights_name'] = _highlightsName;
  map['highlights_tag_line'] = _highlightsTagLine;
  map['highlights_description'] = _highlightsDescription;
  if (_otherProjects != null) {
    map['other_projects'] = _otherProjects?.map((v) => v.toJson()).toList();
  }

  if (_inquiryTypes != null) {
    map['inquiry_types'] = _inquiryTypes?.map((v) => v.toJson()).toList();
  }

  map['project_category_id'] = _projectCategoryId;
  map['category_id'] = _categoryId;
  map['category'] = _category;
  if (_construction != null) {
    map['construction'] = _construction?.toJson();
  }
  if (_constructionData2 != null) {
    map['construction_data_2'] = _constructionData2?.toJson();
  }
  map['project_status_id'] = _projectStatusId;
  map['status_id'] = _statusId;
  map['status'] = _status;
  if (_documentOtherData != null) {
    map['document_other_data'] = _documentOtherData?.map((v) => v.toJson()).toList();
  }
  if (_galleryData != null) {
    map['gallery_data'] = _galleryData?.map((v) => v.toJson()).toList();
  }
  if (_virtualData != null) {
    map['virtual_data'] = _virtualData?.map((v) => v.toJson()).toList();
  }
  if (_amenitiesData != null) {
    map['amenities_data'] = _amenitiesData?.map((v) => v.toJson()).toList();
  }
  map['amenities_array'] = _amenitiesArray;
  if (_highlights != null) {
    map['highlights'] = _highlights?.map((v) => v.toJson()).toList();
  }
  if (_amenitiesImages != null) {
    map['amenities_images'] = _amenitiesImages?.map((v) => v.toJson()).toList();
  }
  if (_bannerData != null) {
    map['banner_data'] = _bannerData?.toJson();
  }
  map['total_inquiries'] = _totalInquiries;
  if (_campaignArray != null) {
    map['campaign_array'] = _campaignArray?.map((v) => v.toJson()).toList();
  }
  return map;
}