toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final filter = this.filter;
  final filterSettings = this.filterSettings;
  final spatialFilterSettings = this.spatialFilterSettings;
  final temporalFilterSettings = this.temporalFilterSettings;
  return {
    if (filter != null) 'filter': filter.toValue(),
    if (filterSettings != null) 'filterSettings': filterSettings,
    if (spatialFilterSettings != null)
      'spatialFilterSettings': spatialFilterSettings,
    if (temporalFilterSettings != null)
      'temporalFilterSettings': temporalFilterSettings,
  };
}