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