Since you're using IRIS 2022.2 I would really suggest you use %DynamicObject:

https://docs.intersystems.com/iris20222/csp/docbook/Doc.View.cls?KEY=GJS...

   set dynObject1 = ##class(%DynamicObject).%New()
   set dynObject1.dynamicLinkInfo = ##class(%DynamicObject).%New()
   set dynObject1.dynamicLinkInfo.domainUriPrefix = "link.example.com"
   set dynObject1.dynamicLinkInfo.link = "https://www.examplelink.com"
   set dynObject1.suffix = = ##class(%DynamicObject).%New()
   set dynObject1.suffix.option = "SHORT"