ListenRequest.fromJson constructor

ListenRequest.fromJson(
  1. Map _json
)

Implementation

ListenRequest.fromJson(core.Map _json) {
  if (_json.containsKey("addTarget")) {
    addTarget = new Target.fromJson(_json["addTarget"]);
  }
  if (_json.containsKey("labels")) {
    labels = (_json["labels"] as core.Map).cast<core.String, core.String>();
  }
  if (_json.containsKey("removeTarget")) {
    removeTarget = _json["removeTarget"];
  }
}