Attribute.fromJson constructor

Attribute.fromJson(
  1. Map json_
)

Implementation

Attribute.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        repeatedEnumValue: json_.containsKey('repeatedEnumValue')
            ? RepeatedEnumAttributeValue.fromJson(json_['repeatedEnumValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        uriValues: json_.containsKey('uriValues')
            ? (json_['uriValues'] as core.List)
                .map((value) => UriAttributeValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        valueType: json_.containsKey('valueType')
            ? json_['valueType'] as core.String
            : null,
        values:
            json_.containsKey('values') ? json_['values'] as core.List : null,
      );