toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['country'] = this.country;
  data['state'] = this.state;
  data['postcode'] = this.postcode;
  data['city'] = this.city;
  data['rate'] = this.rate;
  data['name'] = this.name;
  data['priority'] = this.priority;
  data['compound'] = this.compound;
  data['shipping'] = this.shipping;
  data['order'] = this.order;
  data['class'] = this.taxClass;
  if (this.links != null) {
    data['_links'] = this.links!.toJson();
  }
  return data;
}