Creates a new StringValueMap from a list of key-value pairs called tuples.
        The method is similar to [[fromTuples]] but tuples are passed as array instead of parameters.

        :param tuples: a list of values where odd elements are keys and the following even elements are values

        :return: a newly created StringValueMap.

def from_tuples_array(tuples):
        """
        Creates a new StringValueMap from a list of key-value pairs called tuples.
        The method is similar to [[fromTuples]] but tuples are passed as array instead of parameters.

        :param tuples: a list of values where odd elements are keys and the following even elements are values

        :return: a newly created StringValueMap.
        """
        result = StringValueMap()

        if tuples == None or len(tuples) == 0:
            return result

        index = 0
        while index < len(tuples):
            if index + 1 >= len(tuples):
                break

            key = StringConverter.to_string(tuples[index])
            value = StringConverter.to_nullable_string(tuples[index + 1])
            index += 2

            result.put(key, value)

        return result