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['rate_code'] = this.rateCode;
  data['rate_id'] = this.rateId;
  data['label'] = this.label;
  data['compound'] = this.compound;
  data['tax_total'] = this.taxTotal;
  data['shipping_tax_total'] = this.shippingTaxTotal;
  if (this.metaData != null) {
    data['meta_data'] = this.metaData!.map((v) => v.toJson()).toList();
  }
  return data;
}