WooShippingZoneLinks.fromJson constructor

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

Implementation

WooShippingZoneLinks.fromJson(Map<String, dynamic> json) {
  if (json['self'] != null) {
    self = <WooShippingZoneSelf>[];
    json['self'].forEach((v) {
      self!.add(new WooShippingZoneSelf.fromJson(v));
    });
  }
  if (json['collection'] != null) {
    collection = <WooShippingZoneCollection>[];
    json['collection'].forEach((v) {
      collection!.add(new WooShippingZoneCollection.fromJson(v));
    });
  }
  if (json['describedby'] != null) {
    describedby = <Describedby>[];
    json['describedby'].forEach((v) {
      describedby!.add(new Describedby.fromJson(v));
    });
  }
}