Pivot.fromJson constructor

Pivot.fromJson(
  1. Map json_
)

Implementation

Pivot.fromJson(core.Map json_)
    : this(
        fieldNames: json_.containsKey('fieldNames')
            ? (json_['fieldNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        limit:
            json_.containsKey('limit') ? json_['limit'] as core.String : null,
        metricAggregations: json_.containsKey('metricAggregations')
            ? (json_['metricAggregations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        offset: json_.containsKey('offset')
            ? json_['offset'] as core.String
            : null,
        orderBys: json_.containsKey('orderBys')
            ? (json_['orderBys'] as core.List)
                .map((value) => OrderBy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );