commonMain.com.mikepenz.storyblok.sdk.model.DatasourceEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of storyblok-mp-sdk-js Show documentation
Show all versions of storyblok-mp-sdk-js Show documentation
Storyblok Client SDK written using Kotlin Multiplatform. (Android, JVM, JS, iOS, ...)
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()
}