RealtimeDataQuery.fromJson constructor

RealtimeDataQuery.fromJson(
  1. Map json_
)

Implementation

RealtimeDataQuery.fromJson(core.Map json_)
    : this(
        dimensions: json_.containsKey('dimensions')
            ? json_['dimensions'] as core.String
            : null,
        filters: json_.containsKey('filters')
            ? json_['filters'] as core.String
            : null,
        ids: json_.containsKey('ids') ? json_['ids'] as core.String : null,
        maxResults: json_.containsKey('max-results')
            ? json_['max-results'] as core.int
            : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sort: json_.containsKey('sort')
            ? (json_['sort'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );