ParameterMetadata.fromJson constructor

ParameterMetadata.fromJson(
  1. Map _json
)

Implementation

ParameterMetadata.fromJson(core.Map _json)
    : this(
        customMetadata: _json.containsKey('customMetadata')
            ? (_json['customMetadata'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        helpText: _json.containsKey('helpText')
            ? _json['helpText'] as core.String
            : null,
        isOptional: _json.containsKey('isOptional')
            ? _json['isOptional'] as core.bool
            : null,
        label:
            _json.containsKey('label') ? _json['label'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        paramType: _json.containsKey('paramType')
            ? _json['paramType'] as core.String
            : null,
        regexes: _json.containsKey('regexes')
            ? (_json['regexes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );