public static BetSettlementMarket Parse(dynamic dynamicXml) { if (dynamicXml == null) { return(null); } var builder = new BetSettlementMarket { Id = dynamicXml.Id <int>(), Outcomes = BetSettlementOutcome.ParseList(dynamicXml.GetOutcomeList()), Specifiers = dynamicXml.Specifiers, VoidReason = dynamicXml.void_reason }; return(builder); }
public static BetSettlementOutcome Parse(dynamic dynamicXml) { if (dynamicXml == null) { return(null); } var builder = new BetSettlementOutcome() { DeadHeatFactor = dynamicXml.DeadHeatFactor <double?>(), Id = OutcomeIdParser.ParseId(dynamicXml.Id), Result = dynamicXml.Result <int>(), VoidFactor = dynamicXml.VoidFactor <double?>() }; return(builder); }