} //"vat":{} public IParseble Parse(JSONNode financyNode) { if (financyNode["sub_total"] != null) { subTotal = new FinanceItem().Parse(financyNode["sub_total"]) as FinanceItem; } if (financyNode["discount"] != null) { discount = new FinanceItemBase().Parse(financyNode["discount"]) as FinanceItemBase; } if (financyNode["fee"] != null) { fee = new FinanceItemBase().Parse(financyNode["fee"]) as FinanceItemBase; } if (financyNode["xsolla_credits"] != null) { xsollaCredits = new FinanceItem().Parse(financyNode["xsolla_credits"]) as FinanceItem; } if (financyNode["total"] != null) { total = new FinanceItemBase().Parse(financyNode["total"]) as FinanceItemBase; } if (financyNode["vat"] != null) { vat = new FinanceItemBase().Parse(financyNode["vat"]) as FinanceItemBase; } return(this); }
public IParseble Parse(JSONNode financyNode) { if(financyNode["sub_total"] != null) subTotal = new FinanceItem().Parse(financyNode["sub_total"]) as FinanceItem; if(financyNode["discount"] != null) discount = new FinanceItemBase().Parse(financyNode["discount"]) as FinanceItemBase; if(financyNode["fee"] != null) fee = new FinanceItemBase().Parse(financyNode["fee"]) as FinanceItemBase; if(financyNode["xsolla_credits"] != null) xsollaCredits = new FinanceItem().Parse(financyNode["xsolla_credits"]) as FinanceItem; if(financyNode["total"] != null) total = new FinanceItemBase().Parse(financyNode["total"]) as FinanceItemBase; if(financyNode["vat"] != null) vat = new FinanceItemBase().Parse(financyNode["vat"]) as FinanceItemBase; return this; }