WooShippingZoneMethodSettings.fromJson constructor

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

Implementation

WooShippingZoneMethodSettings.fromJson(Map<String, dynamic> json) {
  title = json['title'] != null
      ? new WooShippingZoneMethodTitle.fromJson(json['title'])
      : null;
  taxStatus = json['tax_status'] != null
      ? new WooShippingZoneMethodTaxStatus.fromJson(json['tax_status'])
      : null;
  cost = json['cost'] != null
      ? new WooShippingZoneMethodCost.fromJson(json['cost'])
      : null;
  classCosts = json['class_costs'] != null
      ? new WooShippingZoneMethodClassCosts.fromJson(json['class_costs'])
      : null;
  classCost92 = json['class_cost_92'] != null
      ? new WooShippingZoneMethodClassCost92.fromJson(json['class_cost_92'])
      : null;
  classCost91 = json['class_cost_91'] != null
      ? new WooShippingZoneMethodClassCost91.fromJson(json['class_cost_91'])
      : null;
  noClassCost = json['no_class_cost'] != null
      ? new WooShippingZoneMethodNoClassCost.fromJson(json['no_class_cost'])
      : null;
  type = json['type'] != null
      ? new WooShippingZoneMethodType.fromJson(json['type'])
      : null;
}