AggregateRequest.fromJson constructor

AggregateRequest.fromJson(
  1. Map json_
)

Implementation

AggregateRequest.fromJson(core.Map json_)
    : this(
        aggregateBy: json_.containsKey('aggregateBy')
            ? (json_['aggregateBy'] as core.List)
                .map((value) => AggregateBy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        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_.containsKey('endTimeMillis')
            ? json_['endTimeMillis'] as core.String
            : null,
        filteredDataQualityStandard:
            json_.containsKey('filteredDataQualityStandard')
                ? (json_['filteredDataQualityStandard'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        startTimeMillis: json_.containsKey('startTimeMillis')
            ? json_['startTimeMillis'] as core.String
            : null,
      );