Attribute.fromJson constructor

Attribute.fromJson(
  1. Map json_
)

Implementation

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