AggregateRequest.fromJson constructor

AggregateRequest.fromJson(
  1. Map json_
)

Implementation

AggregateRequest.fromJson(core.Map json_)
  : this(
      aggregateBy:
          (json_['aggregateBy'] as core.List?)
              ?.map(
                (value) => AggregateBy.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      bucketByActivitySegment:
          json_.containsKey('bucketByActivitySegment')
              ? BucketByActivity.fromJson(
                json_['bucketByActivitySegment']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      bucketByActivityType:
          json_.containsKey('bucketByActivityType')
              ? BucketByActivity.fromJson(
                json_['bucketByActivityType']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      bucketBySession:
          json_.containsKey('bucketBySession')
              ? BucketBySession.fromJson(
                json_['bucketBySession']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      bucketByTime:
          json_.containsKey('bucketByTime')
              ? BucketByTime.fromJson(
                json_['bucketByTime'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      endTimeMillis: json_['endTimeMillis'] as core.String?,
      filteredDataQualityStandard:
          (json_['filteredDataQualityStandard'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      startTimeMillis: json_['startTimeMillis'] as core.String?,
    );