OrderBy.fromJson constructor

OrderBy.fromJson(
  1. Map _json
)

Implementation

OrderBy.fromJson(core.Map _json)
    : this(
        desc: _json.containsKey('desc') ? _json['desc'] as core.bool : null,
        dimension: _json.containsKey('dimension')
            ? DimensionOrderBy.fromJson(
                _json['dimension'] as core.Map<core.String, core.dynamic>)
            : null,
        metric: _json.containsKey('metric')
            ? MetricOrderBy.fromJson(
                _json['metric'] as core.Map<core.String, core.dynamic>)
            : null,
        pivot: _json.containsKey('pivot')
            ? PivotOrderBy.fromJson(
                _json['pivot'] as core.Map<core.String, core.dynamic>)
            : null,
      );