Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / DatasyncValuable / convertTo

convertTo

fun <T : Any> convertTo(type: KClass<T>): WebcomResult<T>

Converts this DatasyncValuable to a given T type.

If the conversion fails, returns a WebcomResult.Failure instance with the error.