PivotOrderBy.fromJson constructor

PivotOrderBy.fromJson(
  1. Map _json
)

Implementation

PivotOrderBy.fromJson(core.Map _json)
    : this(
        metricName: _json.containsKey('metricName')
            ? _json['metricName'] as core.String
            : null,
        pivotSelections: _json.containsKey('pivotSelections')
            ? (_json['pivotSelections'] as core.List)
                .map((value) => PivotSelection.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );