示例#1
0
        public IDictionary <string, object> Serialize()
        {
            IDictionary <string, object> result = new Dictionary <string, object>();

            FluentDictionary.For(result)
            .Add("elementType", ElementType != null ? ElementType.ToClientSideString() : null, () => ElementType != null)
            .Add("featureType", FeatureType != null ? FeatureType.ToClientSideString() : null, () => FeatureType != null)
            .Add("stylers", Stylers, () => Stylers.Any());

            return(result);
        }