ServiceClientGenerator.Utils.GetStringMap C# (CSharp) Method

GetStringMap() public static method

public static GetStringMap ( this self ) : string>.IDictionary
self this
return string>.IDictionary
        public static IDictionary<string, string> GetStringMap(this JsonData self)
        {
            var result = new Dictionary<string, string>();

            if (self != null || self.IsObject)
            {
                foreach (var key in self.PropertyNames)
                {
                    var tmp = self.SafeGet(key);
                    if (tmp.IsString)
                        result[key] = tmp.ToString();
                }
            }

            return result;
        }