I need some help. I just cannot figure out how to add data (here more animals with values) to a List like following:
List animal = [{ "display": "Dog", "value": "1",},{"display": "Cat","value": "2",}];
-> so the structure of a entry must be like {"display" : "XYZ", "value": "NRXYZ"}. Is there a function to dynamically add more animals with values.
Thanks a lot!