fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
inline fun <reified K : Any> Template.setData(obj: K): Unit
Extension function to set serializable object as a template data.