com.yandex.div.dsl.model.DivWrapContentSize.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 DivWrapContentSize internal constructor(
@JsonIgnore val constrained: Property?,
) : DivSize {
@JsonProperty("type") override val type = "wrap_content"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"constrained" to constrained,
)
}
}
fun TemplateContext.divWrapContentSize(): LiteralProperty {
return value(DivWrapContentSize(
constrained = null,
))
}
fun TemplateContext.divWrapContentSize(
constrained: Property? = null,
): LiteralProperty {
return value(DivWrapContentSize(
constrained = constrained,
))
}
fun TemplateContext.divWrapContentSize(
constrained: BoolInt? = null,
): LiteralProperty {
return value(DivWrapContentSize(
constrained = optionalValue(constrained),
))
}
fun CardContext.divWrapContentSize(): DivWrapContentSize {
return DivWrapContentSize(
constrained = null,
)
}
fun CardContext.divWrapContentSize(
constrained: ValueProperty? = null,
): DivWrapContentSize {
return DivWrapContentSize(
constrained = constrained,
)
}
fun CardContext.divWrapContentSize(
constrained: BoolInt? = null,
): DivWrapContentSize {
return DivWrapContentSize(
constrained = optionalValue(constrained),
)
}