Parameters.fromJson constructor

Parameters.fromJson(
  1. Map json_
)

Implementation

Parameters.fromJson(core.Map json_)
    : this(
        filters: json_.containsKey('filters')
            ? (json_['filters'] as core.List)
                .map((value) => FilterPair.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        groupBys: json_.containsKey('groupBys')
            ? (json_['groupBys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        options: json_.containsKey('options')
            ? Options.fromJson(
                json_['options'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );