示例#1
0
        public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
        {
            if (reader.Value == null)
            {
                return(null);
            }
            string str = reader.Value.ToString();

            com.clover.sdk.v3.order.Order result = JsonUtils.deserialize <com.clover.sdk.v3.order.Order>(str, new JsonConverter[] {
                new ListConverter <com.clover.sdk.v3.order.LineItem>(),
                new ListConverter <com.clover.sdk.v3.order.OrderTaxRate>(),
                new ListConverter <com.clover.sdk.v3.order.Modification>(),
                new ListConverter <com.clover.sdk.v3.order.Discount>(),
                new ListConverter <com.clover.sdk.v3.inventory.TaxRate>(),
                new ListConverter <com.clover.sdk.v3.customers.Customer>(),
                new ListConverter <com.clover.sdk.v3.payments.Payment>(),
                new ListConverter <com.clover.sdk.v3.payments.LineItemPayment>(),
                new ListConverter <com.clover.sdk.v3.payments.Refund>(),
                new ListConverter <com.clover.sdk.v3.payments.Credit>()
            });
            return(result);
        }