please check the following issue over at github:
https://github.com/jenkinsci/configuration-as-code-plugin/issues/409
seems like the getter/setters are taking and returning different objects.
proposal: