SearchAnalyticsQueryRequest.fromJson constructor

SearchAnalyticsQueryRequest.fromJson(
  1. Map json_
)

Implementation

SearchAnalyticsQueryRequest.fromJson(core.Map json_)
    : this(
        aggregationType: json_.containsKey('aggregationType')
            ? json_['aggregationType'] as core.String
            : null,
        dataState: json_.containsKey('dataState')
            ? json_['dataState'] as core.String
            : null,
        dimensionFilterGroups: json_.containsKey('dimensionFilterGroups')
            ? (json_['dimensionFilterGroups'] as core.List)
                .map((value) => ApiDimensionFilterGroup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        endDate: json_.containsKey('endDate')
            ? json_['endDate'] as core.String
            : null,
        rowLimit: json_.containsKey('rowLimit')
            ? json_['rowLimit'] as core.int
            : null,
        searchType: json_.containsKey('searchType')
            ? json_['searchType'] as core.String
            : null,
        startDate: json_.containsKey('startDate')
            ? json_['startDate'] as core.String
            : null,
        startRow: json_.containsKey('startRow')
            ? json_['startRow'] as core.int
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );