public static MarketDescriptionList Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new MarketDescriptionList
            {
                Markets = MarketDescription.ParseList(dynamicXml.GetMarketList())
            };

            return(builder);
        }
        public static MarketDescription Parse(dynamic dynamicXml)
        {
            if (dynamicXml == null)
            {
                return(null);
            }

            var builder = new MarketDescription
            {
                Description = dynamicXml.Description,
                Groups      = dynamicXml.Groups,
                Id          = dynamicXml.Id <int>(),
                Name        = dynamicXml.Name,
                Outcomes    = MarketDescriptionOutcome.ParseList(dynamicXml.Outcomes?.GetOutcomeList()),
                Variant     = dynamicXml.Variant
            };

            return(builder);
        }