set myAddress = addressAsJSONDocument.jsonToClass();
The action script below creates an object of type Address. An output object flow state named myAddress of type Address needs to be defined in the activity diagram.
create myAddress;
set myAddress = addressAsJSONDocument.jsonToClass();
Below, a sample JSON string is shown to illustrate the mapping executed by the jsonlToClass() operation. The JSON string is mapped to an instance of Address as shown in the activity diagram.