skip to Main Content

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.

2

Answers


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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search