DataCalss, and web calls

Hi All,

Ill start out by saying sorry for asking these question but i could not work it out my self. I thought id have a go at implementing my WTH wth-wled-use-segment-names-if-they-exist

I started looking at the WLED core component and reading through the developer guide but am a little lost.
Can some one please point me in the right direction, I am trying to work out where the API calls are made to the wled controller and where they are turned in to a dataclass.
Specifically I was trying to find the name of a wled segment as can be found segment json but the ha data for a segment does not have this