The services getter on the Browser class claims to return the class Service, when it actually returns plain objects which mostly happens to line up with that class.
Looking into the code, this issue runs deeper the return value of buildServicesFor inside the Browser class is returning KeyValue objects, which is then cast to Service, with the remaining logic assuming it is of type Service.
The
servicesgetter on theBrowserclass claims to return the classService, when it actually returns plain objects which mostly happens to line up with that class.Looking into the code, this issue runs deeper the return value of
buildServicesForinside theBrowserclass is returningKeyValueobjects, which is then cast toService, with the remaining logic assuming it is of typeService.