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