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,
      );