com.yandex.div.dsl.model.DivAbsoluteEdgeInsets.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 DivAbsoluteEdgeInsets internal constructor(
@JsonIgnore val bottom: Property?,
@JsonIgnore val left: Property?,
@JsonIgnore val right: Property?,
@JsonIgnore val top: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"bottom" to bottom,
"left" to left,
"right" to right,
"top" to top,
)
}
}
fun TemplateContext.divAbsoluteEdgeInsets(): LiteralProperty {
return value(DivAbsoluteEdgeInsets(
bottom = null,
left = null,
right = null,
top = null,
))
}
fun TemplateContext.divAbsoluteEdgeInsets(
bottom: Property? = null,
left: Property? = null,
right: Property? = null,
top: Property? = null,
): LiteralProperty {
return value(DivAbsoluteEdgeInsets(
bottom = bottom,
left = left,
right = right,
top = top,
))
}
fun TemplateContext.divAbsoluteEdgeInsets(
bottom: Int? = null,
left: Int? = null,
right: Int? = null,
top: Int? = null,
): LiteralProperty {
return value(DivAbsoluteEdgeInsets(
bottom = optionalValue(bottom),
left = optionalValue(left),
right = optionalValue(right),
top = optionalValue(top),
))
}
fun CardContext.divAbsoluteEdgeInsets(): DivAbsoluteEdgeInsets {
return DivAbsoluteEdgeInsets(
bottom = null,
left = null,
right = null,
top = null,
)
}
fun CardContext.divAbsoluteEdgeInsets(
bottom: ValueProperty? = null,
left: ValueProperty? = null,
right: ValueProperty? = null,
top: ValueProperty? = null,
): DivAbsoluteEdgeInsets {
return DivAbsoluteEdgeInsets(
bottom = bottom,
left = left,
right = right,
top = top,
)
}
fun CardContext.divAbsoluteEdgeInsets(
bottom: Int? = null,
left: Int? = null,
right: Int? = null,
top: Int? = null,
): DivAbsoluteEdgeInsets {
return DivAbsoluteEdgeInsets(
bottom = optionalValue(bottom),
left = optionalValue(left),
right = optionalValue(right),
top = optionalValue(top),
)
}