Embedded Object Property
Note: This type can only be used in object DataModels defined in code and cannot be used for queries.
A property which contains another DataModel as embedded object. See DataModels for more details on how to define DataModels.
| Kotlin Definition | EmbeddedObjectDefinition |
|---|---|
| Kotlin Value | T T stands for the DataModel data class |
Usage options
Section titled “Usage options”- Value
- Map value
Validation Options
Section titled “Validation Options”required | default true |
|---|---|
final | default false |
Other options
Section titled “Other options”default | the default value to be used if value was not set. |
|---|---|
dataModel | Refers to DataModel to be embedded |
Examples
Section titled “Examples”Example of an Embedded Object property definition for use within a Model
val address by embedObject( index = 1u, required = false, final = true, dataModel = { Address })Example of a separate EmbeddedObject property definition
val def = EmbeddedObjectDefinition( required = false, final = true, dataModel = { Address })Transport Byte representation
Section titled “Transport Byte representation”Uses the embedded-message encoding. The nested model determines the property indexes and wire types within the payload.