TargetInstanceList.fromJson constructor

TargetInstanceList.fromJson(
  1. Map _json
)

Implementation

TargetInstanceList.fromJson(core.Map _json) {
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("items")) {
    items = (_json["items"] as core.List)
        .map<TargetInstance>((value) => new TargetInstance.fromJson(value))
        .toList();
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
  if (_json.containsKey("selfLink")) {
    selfLink = _json["selfLink"];
  }
  if (_json.containsKey("warning")) {
    warning = new TargetInstanceListWarning.fromJson(_json["warning"]);
  }
}