TemplateParameter.fromJson constructor

TemplateParameter.fromJson(
  1. Map json_
)

Implementation

TemplateParameter.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        validation: json_.containsKey('validation')
            ? ParameterValidation.fromJson(
                json_['validation'] as core.Map<core.String, core.dynamic>)
            : null,
      );