toDynamic

Return a new data path with the specified type, using chained {@link com.sap.cloud.mobile.kotlin.odata.DataPath#parentPath DataPath.parentPath} and {@link com.sap.cloud.mobile.kotlin.odata.DataPath#dynamicProperty DataPath.dynamicProperty} rather than {@link com.sap.cloud.mobile.kotlin.odata.DataPath#pathSegments DataPath.pathSegments}.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataPath#withSegments(kotlin.Int, com.sap.cloud.mobile.kotlin.odata.StringList) DataPath.withSegments}.

Return

A new data path with the specified type, using chained {@link com.sap.cloud.mobile.kotlin.odata.DataPath#parentPath DataPath.parentPath} and {@link com.sap.cloud.mobile.kotlin.odata.DataPath#dynamicProperty DataPath.dynamicProperty} rather than {@link com.sap.cloud.mobile.kotlin.odata.DataPath#pathSegments DataPath.pathSegments}.

Parameters

segments

Path segments. Must not be empty.