Home > front end >  In my model class normaly working but it show error now iam working i don't know what is the re
In my model class normaly working but it show error now iam working i don't know what is the re

Time:12-26

enter image description here

as you see in this picture it shows error when iam using this model class how to solve this problem.

I tried but it's not working.

CodePudding user response:

You are wrong syntax, replace all of yours = with : will solve problem

CodePudding user response:

the Map's key/value pairs are linked with a : not a =, so in your code instead of doing this:

key = value,

change it to this:

key: value,

and the same thing for your class.

  • Related