WooShippingZoneLocationLinks.fromJson constructor

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

Implementation

WooShippingZoneLocationLinks.fromJson(Map<String, dynamic> json) {
  if (json['collection'] != null) {
    collection = [];
    json['collection'].forEach((v) {
      collection!.add(new WooShippingZoneLocationCollection.fromJson(v));
    });
  }
  if (json['describes'] != null) {
    describes = [];
    json['describes'].forEach((v) {
      describes!.add(new WooShippingZoneLocationDescribes.fromJson(v));
    });
  }
}