RealtimeDataQuery.fromJson constructor

RealtimeDataQuery.fromJson(
  1. Map _json
)

Implementation

RealtimeDataQuery.fromJson(core.Map _json) {
  if (_json.containsKey("dimensions")) {
    dimensions = _json["dimensions"];
  }
  if (_json.containsKey("filters")) {
    filters = _json["filters"];
  }
  if (_json.containsKey("ids")) {
    ids = _json["ids"];
  }
  if (_json.containsKey("max-results")) {
    max_results = _json["max-results"];
  }
  if (_json.containsKey("metrics")) {
    metrics = (_json["metrics"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("sort")) {
    sort = (_json["sort"] as core.List).cast<core.String>();
  }
}