I'm struggling with manipulating an Array of checkboxes that are grouped into parent and child elements. I need to automatically check all child checkboxes when the parent is checked, uncheck them if the parent is unchecked, and update their states in the Array accordingly. However, this task is way over my head as I am new to Vue.
To illustrate my issue, I created a Codepen here. Unfortunately, I am unable to change the structure of the Array since it's a JSON response from the server.
Could someone please guide me through this problem? Any help would be greatly appreciated. Thank you in advance!