toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.minStarRating != null) {
    json[r'minStarRating'] = this.minStarRating;
  } else {
    json[r'minStarRating'] = null;
  }
  if (this.maxStarRating != null) {
    json[r'maxStarRating'] = this.maxStarRating;
  } else {
    json[r'maxStarRating'] = null;
  }
  if (this.minPrice != null) {
    json[r'minPrice'] = this.minPrice;
  } else {
    json[r'minPrice'] = null;
  }
  if (this.maxPrice != null) {
    json[r'maxPrice'] = this.maxPrice;
  } else {
    json[r'maxPrice'] = null;
  }
  if (this.boardTypes != null) {
    json[r'boardTypes'] = this.boardTypes;
  } else {
    json[r'boardTypes'] = null;
  }
  if (this.cancellationTypes != null) {
    json[r'cancellationTypes'] = this.cancellationTypes;
  } else {
    json[r'cancellationTypes'] = null;
  }
  if (this.amenityCodes != null) {
    json[r'amenityCodes'] = this.amenityCodes;
  } else {
    json[r'amenityCodes'] = null;
  }
  return json;
}