WooProductAttributeTerm.fromJson constructor

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

Implementation

WooProductAttributeTerm.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  slug = json['slug'];
  description = json['description'];
  menuOrder = json['menu_order'];
  count = json['count'];
  links = json['_links'] != null
      ? new WooProductAttributeTermLinks.fromJson(json['_links'])
      : null;
}