
com.yandex.div.dsl.model.Div.kt Maven / Gradle / Ivy
// 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.*
sealed interface Div {
val type: String
}
private class TemplatedDiv constructor(
@JsonProperty("type") override val type: String,
@JsonIgnore val bindings: Array>
) : Div {
@JsonAnyGetter
fun properties(): Map {
return propertyMapOf(*bindings)
}
}
fun TemplateContext.template(
type: String,
vararg bindings: PropertyOverriding<*>
): LiteralProperty {
return LiteralProperty(TemplatedDiv(type, bindings))
}
fun CardContext.template(
type: String,
vararg bindings: TemplateBinding<*>
): Div {
return TemplatedDiv(type, bindings)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy