How to access custom data type variables?

How to access custom data type variables?

Hi! I have a variable with a custom data type like:



How can I access FIELD_1, FIELD_2 and FIELD_3 using the API so I could write/set value to those fields?