WooProductAttributeTermLinks.fromJson constructor

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

Implementation

WooProductAttributeTermLinks.fromJson(Map<String, dynamic> json) {
  if (json['self'] != null) {
    self = <WooProductAttributeTermSelf>[];
    json['self'].forEach((v) {
      self!.add(new WooProductAttributeTermSelf.fromJson(v));
    });
  }
  if (json['collection'] != null) {
    collection = <WooProductAttributeTermCollection>[];
    json['collection'].forEach((v) {
      collection!.add(new WooProductAttributeTermCollection.fromJson(v));
    });
  }
}