AttributeGroup.fromJson constructor

AttributeGroup.fromJson(
  1. dynamic json
)

Implementation

factory AttributeGroup.fromJson(dynamic json) => AttributeGroup(
      id: json[_JSON_TAG_ID] as String?,
      name: json[_JSON_TAG_NAME] as String?,
      warning: json[_JSON_TAG_WARNING] as String?,
      attributes: (json[_JSON_TAG_ATTRIBUTES] as List?)
          ?.map((item) => Attribute.fromJson(item))
          .toList(),
    );