toJson method
Implementation
Map<dynamic, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.billingAddressRequired != null) data['billing_address_required'] = this.billingAddressRequired;
if (this.currencyCode != null) data['currency_code'] = this.currencyCode;
if (this.shippingAddressRequired != null) data['shipping_address_required'] = this.shippingAddressRequired;
if (this.totalPrice != null) data['total_price'] = this.totalPrice;
if (this.lineItems != null) {
data['line_items'] = this.lineItems!.map((v) => v.toJson()).toList();
}
if (this.shippingCountries != null) {
if (this.shippingCountries != null) data['shipping_countries'] = this.shippingCountries;
}
return data;
}