public static AnyValueMap FromValue(object value)
        {
            var result = new AnyValueMap();

            result.SetAsObject(value);
            return(result);
        }
        public static AnyValueMap FromTuples(params object[] tuples)
        {
            var result = new AnyValueMap();

            if (tuples == null || tuples.Length == 0)
            {
                return(result);
            }

            for (var index = 0; index < tuples.Length; index += 2)
            {
                if (index + 1 >= tuples.Length)
                {
                    break;
                }

                var name  = StringConverter.ToString(tuples[index]);
                var value = tuples[index + 1];

                result.SetAsObject(name, value);
            }

            return(result);
        }