Why when I use
['type':x, z:y]
Where
x = 'Car' z = 'Speed' y = '1000'
I get a card equal to
[type=Car, z=1000]
but not
[type=Car, Speed=1000]
and how can I overcome it?
Surround z with()
z
()
['type':x, (z):y]
According to the docs .
If your Map keys are always strings, the following approach should work as well
['type':x, "$z":y]