All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.div.dsl.model.DivRadialGradientRelativeRadius.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 30.19.0
Show newest version
// 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 DivRadialGradientRelativeRadius internal constructor(
    @JsonIgnore val value: Property?,
) : DivRadialGradientRadius {

    @JsonProperty("type") override val type = "relative"

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "value" to value,
        )
    }

    enum class Value(@JsonValue val value: String) {
        NEAREST_CORNER("nearest_corner"),
        FARTHEST_CORNER("farthest_corner"),
        NEAREST_SIDE("nearest_side"),
        FARTHEST_SIDE("farthest_side"),
    }
}

fun  TemplateContext.divRadialGradientRelativeRadius(): LiteralProperty {
    return value(DivRadialGradientRelativeRadius(
        value = null,
    ))
}

fun  TemplateContext.divRadialGradientRelativeRadius(
    value: Property? = null,
): LiteralProperty {
    return value(DivRadialGradientRelativeRadius(
        value = value,
    ))
}

fun  TemplateContext.divRadialGradientRelativeRadius(
    value: DivRadialGradientRelativeRadius.Value? = null,
): LiteralProperty {
    return value(DivRadialGradientRelativeRadius(
        value = optionalValue(value),
    ))
}

fun CardContext.divRadialGradientRelativeRadius(
    value: ValueProperty,
): DivRadialGradientRelativeRadius {
    return DivRadialGradientRelativeRadius(
        value = value,
    )
}

fun CardContext.divRadialGradientRelativeRadius(
    value: DivRadialGradientRelativeRadius.Value,
): DivRadialGradientRelativeRadius {
    return DivRadialGradientRelativeRadius(
        value = value(value),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy