Constraint.fromJson constructor

Constraint.fromJson(Map _json)

Implementation

Constraint.fromJson(core.Map _json) {
  if (_json.containsKey("booleanConstraint")) {
    booleanConstraint =
        new BooleanConstraint.fromJson(_json["booleanConstraint"]);
  }
  if (_json.containsKey("constraintDefault")) {
    constraintDefault = _json["constraintDefault"];
  }
  if (_json.containsKey("description")) {
    description = _json["description"];
  }
  if (_json.containsKey("displayName")) {
    displayName = _json["displayName"];
  }
  if (_json.containsKey("listConstraint")) {
    listConstraint = new ListConstraint.fromJson(_json["listConstraint"]);
  }
  if (_json.containsKey("name")) {
    name = _json["name"];
  }
  if (_json.containsKey("version")) {
    version = _json["version"];
  }
}