toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['currency'] = this.currency;
  data['item_count'] = this.itemCount;
  if (this.items != null) {
    data['items'] = this.items!.map((v) => v.toJson()).toList();
  }
  data['needs_shipping'] = this.needsShipping;
  data['total_price'] = this.totalPrice;
  data['total_weight'] = this.totalWeight;
  return data;
}