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
.