TemplateMetadata.fromJson constructor

TemplateMetadata.fromJson(
  1. Map _json
)

Implementation

TemplateMetadata.fromJson(core.Map _json)
    : this(
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        parameters: _json.containsKey('parameters')
            ? (_json['parameters'] as core.List)
                .map((value) => ParameterMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );