com.yandex.div.dsl.model.DivSolidBackground.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 DivSolidBackground internal constructor(
@JsonIgnore val color: Property?,
) : DivBackground {
@JsonProperty("type") override val type = "solid"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"color" to color,
)
}
}
fun TemplateContext.divSolidBackground(): LiteralProperty {
return value(DivSolidBackground(
color = null,
))
}
fun TemplateContext.divSolidBackground(
color: Property? = null,
): LiteralProperty {
return value(DivSolidBackground(
color = color,
))
}
fun TemplateContext.divSolidBackground(
color: Color? = null,
): LiteralProperty {
return value(DivSolidBackground(
color = optionalValue(color),
))
}
fun CardContext.divSolidBackground(
color: ValueProperty,
): DivSolidBackground {
return DivSolidBackground(
color = color,
)
}
fun CardContext.divSolidBackground(
color: Color,
): DivSolidBackground {
return DivSolidBackground(
color = value(color),
)
}