Reputation: 92
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.
Upvotes: 0
Views: 26
Reputation: 9196
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
.
Upvotes: 1
Reputation: 3455
You are wrong syntax, replace all of yours =
with :
will solve problem
Upvotes: 1