DataSourceParameter.fromJson constructor

DataSourceParameter.fromJson(
  1. Map _json
)

Implementation

DataSourceParameter.fromJson(core.Map _json) {
  if (_json.containsKey("allowedValues")) {
    allowedValues = (_json["allowedValues"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("deprecated")) {
    deprecated = _json["deprecated"];
  }
  if (_json.containsKey("description")) {
    description = _json["description"];
  }
  if (_json.containsKey("displayName")) {
    displayName = _json["displayName"];
  }
  if (_json.containsKey("fields")) {
    fields = (_json["fields"] as core.List)
        .map<DataSourceParameter>(
            (value) => new DataSourceParameter.fromJson(value))
        .toList();
  }
  if (_json.containsKey("immutable")) {
    immutable = _json["immutable"];
  }
  if (_json.containsKey("maxValue")) {
    maxValue = _json["maxValue"].toDouble();
  }
  if (_json.containsKey("minValue")) {
    minValue = _json["minValue"].toDouble();
  }
  if (_json.containsKey("paramId")) {
    paramId = _json["paramId"];
  }
  if (_json.containsKey("recurse")) {
    recurse = _json["recurse"];
  }
  if (_json.containsKey("repeated")) {
    repeated = _json["repeated"];
  }
  if (_json.containsKey("required")) {
    required = _json["required"];
  }
  if (_json.containsKey("type")) {
    type = _json["type"];
  }
  if (_json.containsKey("validationDescription")) {
    validationDescription = _json["validationDescription"];
  }
  if (_json.containsKey("validationHelpUrl")) {
    validationHelpUrl = _json["validationHelpUrl"];
  }
  if (_json.containsKey("validationRegex")) {
    validationRegex = _json["validationRegex"];
  }
}