Records in Elm aren’t quite like JavaScript objects; every property you want to add to an Elm record need to be present from when the record is first constructed, such that the record always has the same “shape” if you will. You can use a Dict in Elm though, which allows you to add and remove key-value pairs as you like
Oh I think it is similar to Struct in Elixir. Which has set of known fields and you have to use map to manipulate that struct. I would look into Dict. Thanks