ParameterMetadata.fromJson constructor
ParameterMetadata.fromJson(
- Map json_
Implementation
ParameterMetadata.fromJson(core.Map json_)
: this(
customMetadata: json_.containsKey('customMetadata')
? (json_['customMetadata'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
defaultValue: json_.containsKey('defaultValue')
? json_['defaultValue'] as core.String
: null,
enumOptions: json_.containsKey('enumOptions')
? (json_['enumOptions'] as core.List)
.map((value) => ParameterMetadataEnumOption.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
groupName: json_.containsKey('groupName')
? json_['groupName'] 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,
parentName: json_.containsKey('parentName')
? json_['parentName'] as core.String
: null,
parentTriggerValues: json_.containsKey('parentTriggerValues')
? (json_['parentTriggerValues'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
regexes: json_.containsKey('regexes')
? (json_['regexes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);