Why when I use
['type':x, z:y]
Where
x = 'Car'
z = 'Speed'
y = '1000'
I get a map equal to
[type=Car, z=1000]
and not
[type=Car, Speed=1000]
and how can I overcome it?
Surround the z with ()
['type':x, (z):y]
As per docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With