This is what Maps are used for. In JavaScript, we use objects interchangeably for "records" and "dictionaries". In Scala, and most statically typed languages, we use Maps instead for the dictionary use case. One advantage of Maps compared to JS dictionaries is that the keys can be of a type different than String.
So I would translate your example as the following, with ObjClass being the class of your objects:
import scala.collection.mutable
val parameters = mutable.Map.empty[String, ObjClass]
for (obj <- objects) {
parameters(obj.name) = obj.value
}
myFunction(parameters)
Note that the above is very imperative, and can be rewritten in a more functional style like this:
val parameters = (
for (obj <- objects)
yield obj.name -> obj.value
).toMap