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

commonMain.com.mikepenz.storyblok.sdk.model.DatasourceEntry.kt Maven / Gradle / Ivy

Go to download

Storyblok Client SDK written using Kotlin Multiplatform. (Android, JVM, JS, iOS, ...)

There is a newer version: 2.0.0
Show newest version
package com.mikepenz.storyblok.sdk.model

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
 * A data source is simply a collection of key-value pairs. One specific datasource-entry is a set of two linked attributes: a key,
 * which is a unique identifier for the item and the value.
 *
 * Key-value pairs can be used for a single-choice, multiple-choice options and as well directly through our API to use them for multi-language labels,
 * categories, or any use-case you might need key-value pairs.
 *
 * @param id Numeric id
 * @param name Given name
 * @param slug Given slug
 * @param dimensionValue Given value in the requested dimension
 */
@Serializable
data class DatasourceEntry(
    val id: Long,
    val name: String,
    val slug: String,
    @SerialName("dimension_value")
    val dimensionValue: String? = null
)

@Serializable
internal class DatasourceEntryWrapper {
    @SerialName("datasource_entries")
    val datasourceEntries: List = emptyList()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy