Binding.fromJson constructor

Binding.fromJson(
  1. Map _json
)

Implementation

Binding.fromJson(core.Map _json) {
  if (_json.containsKey("condition")) {
    condition = new Expr.fromJson(_json["condition"]);
  }
  if (_json.containsKey("members")) {
    members = (_json["members"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("role")) {
    role = _json["role"];
  }
}