from

inline fun <T : Any> from(value: T): DynamicDto

Creates a DynamicDto instance from a domain object.

This factory method uses reflection to find the DynamicallyMappable annotation on the object's class to determine the typeName and serializes the object's properties into a JSON payload.

Return

A constructed DynamicDto ready for database operations.

Parameters

value

The object to wrap. Must be annotated with DynamicallyMappable and @Serializable.

Throws

if annotations are missing or serialization fails.


fun from(value: Any, typeName: String, serializer: KSerializer<Any>): DynamicDto

FRAMEWORK PATH Creates DTO using an externally provided (cached) serializer. Zero reflection, maximum performance.