Attribute.fromJson constructor

Attribute.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Attribute.fromJson(Map<String, dynamic> json) => Attribute(
      id: json["id"],
      name: json["name"],
      position: json["position"],
      visible: json["visible"],
      variation: json["variation"],
      options: List<String>.from(json["options"].map((x) => x)),
    );