ProductAttribute.fromJson constructor

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

Implementation

ProductAttribute.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  slug = json['slug'];
  type = json['type'];
  orderBy = json['order_by'];
  hasArchives = json['has_archives'];
  links = json['_links'] != null ? Links.fromJson(json['_links']) : null;
}