com.yandex.div.dsl.model.DivBlur.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.
// Generated code. Do not modify.
package com.yandex.div.dsl.model
import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*
class DivBlur internal constructor(
@JsonIgnore val radius: Property?,
) : DivFilter {
@JsonProperty("type") override val type = "blur"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"radius" to radius,
)
}
}
fun TemplateContext.divBlur(): LiteralProperty {
return value(DivBlur(
radius = null,
))
}
fun TemplateContext.divBlur(
radius: Property? = null,
): LiteralProperty {
return value(DivBlur(
radius = radius,
))
}
fun TemplateContext.divBlur(
radius: Int? = null,
): LiteralProperty {
return value(DivBlur(
radius = optionalValue(radius),
))
}
fun CardContext.divBlur(
radius: ValueProperty,
): DivBlur {
return DivBlur(
radius = radius,
)
}
fun CardContext.divBlur(
radius: Int,
): DivBlur {
return DivBlur(
radius = value(radius),
)
}