WooShippingZoneMethodLinks.fromJson constructor

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

Implementation

WooShippingZoneMethodLinks.fromJson(Map<String, dynamic> json) {
  if (json['self'] != null) {
    self = <WooShippingZoneMethodSelf>[];
    json['self'].forEach((v) {
      self!.add(new WooShippingZoneMethodSelf.fromJson(v));
    });
  }
  if (json['collection'] != null) {
    collection = <WooShippingZoneMethodCollection>[];
    json['collection'].forEach((v) {
      collection!.add(new WooShippingZoneMethodCollection.fromJson(v));
    });
  }
  if (json['describes'] != null) {
    describes = <WooShippingZoneMethodDescribes>[];
    json['describes'].forEach((v) {
      describes!.add(new WooShippingZoneMethodDescribes.fromJson(v));
    });
  }
}