/// <summary> /// Converts this object to a <see cref="Dictionary"/> /// that can be later converted to a JSON representation. /// </summary> public override object ToJson() { var dict = new Dictionary <string, object>(); dict["merchantName"] = MerchantName; dict["pricingLineItems"] = PricingLineItems.ToJson(); dict["currencyCode"] = CurrencyCode; dict["countryCode"] = CountryCode; dict["requiresShipping"] = RequiresShipping; dict["shippingMethods"] = ShippingMethod.ListToJson(ShippingMethods); return(dict); }