WooProductAttribute.fromJson constructor

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

Implementation

WooProductAttribute.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
      ? new WooProductAttributeTermLinks.fromJson(json['_links'])
      : null;
}