Attributes.fromJson constructor

Attributes.fromJson(
  1. Map json_
)

Implementation

Attributes.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.List)
                .map((value) => Attribute.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );