RealtimeData.fromJson constructor

RealtimeData.fromJson(
  1. Map _json
)

Implementation

RealtimeData.fromJson(core.Map _json) {
  if (_json.containsKey("columnHeaders")) {
    columnHeaders = (_json["columnHeaders"] as core.List)
        .map<RealtimeDataColumnHeaders>(
            (value) => new RealtimeDataColumnHeaders.fromJson(value))
        .toList();
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("profileInfo")) {
    profileInfo = new RealtimeDataProfileInfo.fromJson(_json["profileInfo"]);
  }
  if (_json.containsKey("query")) {
    query = new RealtimeDataQuery.fromJson(_json["query"]);
  }
  if (_json.containsKey("rows")) {
    rows = (_json["rows"] as core.List)
        .map<core.List<core.String>>(
            (value) => (value as core.List).cast<core.String>())
        .toList();
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
  if (_json.containsKey("totalResults")) {
    totalResults = _json["totalResults"];
  }
  if (_json.containsKey("totalsForAllResults")) {
    totalsForAllResults = (_json["totalsForAllResults"] as core.Map)
        .cast<core.String, core.String>();
  }
}