Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 457 Bytes

create-embedded-object-description.rst

File metadata and controls

10 lines (8 loc) · 457 Bytes

In the following example, we instantiate a new Contact object with an embedded Address, which contains a Contact object and an embedded Country object:

.. literalinclude:: /examples/generated/kotlin/CreateTest.snippet.create-one-embedded-object.kt
    :language: kotlin

We also instantiate a new Business object with a list of embedded Address objects, which also contain Contact objects and embedded Country objects: