divkit.dsl.Url.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.scope.DivScope
import kotlin.String
import kotlin.jvm.JvmInline
@JvmInline
value class Url internal constructor(
@JsonValue
internal val value: String,
) {
override fun toString() = value
companion object {
fun create(url: String): Url = Url(url)
}
}
fun DivScope.url(url: String): Url = Url(url)