Create an object from a list of [key, value] tuples