toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cohortGroup != null) 'cohortGroup': cohortGroup!,
      if (dateRanges != null) 'dateRanges': dateRanges!,
      if (dimensionFilterClauses != null)
        'dimensionFilterClauses': dimensionFilterClauses!,
      if (dimensions != null) 'dimensions': dimensions!,
      if (filtersExpression != null) 'filtersExpression': filtersExpression!,
      if (hideTotals != null) 'hideTotals': hideTotals!,
      if (hideValueRanges != null) 'hideValueRanges': hideValueRanges!,
      if (includeEmptyRows != null) 'includeEmptyRows': includeEmptyRows!,
      if (metricFilterClauses != null)
        'metricFilterClauses': metricFilterClauses!,
      if (metrics != null) 'metrics': metrics!,
      if (orderBys != null) 'orderBys': orderBys!,
      if (pageSize != null) 'pageSize': pageSize!,
      if (pageToken != null) 'pageToken': pageToken!,
      if (pivots != null) 'pivots': pivots!,
      if (samplingLevel != null) 'samplingLevel': samplingLevel!,
      if (segments != null) 'segments': segments!,
      if (viewId != null) 'viewId': viewId!,
    };