toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (booleanConstraint != null) {
    _json["booleanConstraint"] = (booleanConstraint).toJson();
  }
  if (constraintDefault != null) {
    _json["constraintDefault"] = constraintDefault;
  }
  if (description != null) {
    _json["description"] = description;
  }
  if (displayName != null) {
    _json["displayName"] = displayName;
  }
  if (listConstraint != null) {
    _json["listConstraint"] = (listConstraint).toJson();
  }
  if (name != null) {
    _json["name"] = name;
  }
  if (version != null) {
    _json["version"] = version;
  }
  return _json;
}