WooTaxRateLinks.fromJson constructor

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

Implementation

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