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 (allowedValues != null) {
    _json["allowedValues"] = allowedValues;
  }
  if (deprecated != null) {
    _json["deprecated"] = deprecated;
  }
  if (description != null) {
    _json["description"] = description;
  }
  if (displayName != null) {
    _json["displayName"] = displayName;
  }
  if (fields != null) {
    _json["fields"] = fields.map((value) => (value).toJson()).toList();
  }
  if (immutable != null) {
    _json["immutable"] = immutable;
  }
  if (maxValue != null) {
    _json["maxValue"] = maxValue;
  }
  if (minValue != null) {
    _json["minValue"] = minValue;
  }
  if (paramId != null) {
    _json["paramId"] = paramId;
  }
  if (recurse != null) {
    _json["recurse"] = recurse;
  }
  if (repeated != null) {
    _json["repeated"] = repeated;
  }
  if (required != null) {
    _json["required"] = required;
  }
  if (type != null) {
    _json["type"] = type;
  }
  if (validationDescription != null) {
    _json["validationDescription"] = validationDescription;
  }
  if (validationHelpUrl != null) {
    _json["validationHelpUrl"] = validationHelpUrl;
  }
  if (validationRegex != null) {
    _json["validationRegex"] = validationRegex;
  }
  return _json;
}