DataSourceParameter.fromJson constructor

DataSourceParameter.fromJson(
  1. Map json_
)

Implementation

DataSourceParameter.fromJson(core.Map json_)
    : this(
        allowedValues: json_.containsKey('allowedValues')
            ? (json_['allowedValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        deprecated: json_.containsKey('deprecated')
            ? json_['deprecated'] as core.bool
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => DataSourceParameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        immutable: json_.containsKey('immutable')
            ? json_['immutable'] as core.bool
            : null,
        maxValue: json_.containsKey('maxValue')
            ? (json_['maxValue'] as core.num).toDouble()
            : null,
        minValue: json_.containsKey('minValue')
            ? (json_['minValue'] as core.num).toDouble()
            : null,
        paramId: json_.containsKey('paramId')
            ? json_['paramId'] as core.String
            : null,
        recurse: json_.containsKey('recurse')
            ? json_['recurse'] as core.bool
            : null,
        repeated: json_.containsKey('repeated')
            ? json_['repeated'] as core.bool
            : null,
        required: json_.containsKey('required')
            ? json_['required'] as core.bool
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        validationDescription: json_.containsKey('validationDescription')
            ? json_['validationDescription'] as core.String
            : null,
        validationHelpUrl: json_.containsKey('validationHelpUrl')
            ? json_['validationHelpUrl'] as core.String
            : null,
        validationRegex: json_.containsKey('validationRegex')
            ? json_['validationRegex'] as core.String
            : null,
      );