Automatic conversion for resources providers

Rather than using this function multiple times, and each time looping over all properties, it would be better to first convert the array to a map, and then to access directly the desired properties.