
package org.dartlang.vm.service.element;

// This is a generated file.

import com.google.gson.JsonObject;

/**
 * Every non-error response returned by the Service Protocol extends {@link Response}. By using the
 * {@link type} property, the client can determine which type of response has been provided.
 */
@SuppressWarnings({"WeakerAccess", "unused"})
public class Response extends Element {

  public Response(JsonObject json) {
    super(json);
  }

  /**
   * Every response returned by the VM Service has the type property. This allows the client
   * distinguish between different kinds of responses.
   */
  public String getType() {
    return json.get("type").getAsString();
  }
}
