Genre

@Serializable
data class Genre(val id: Int, val name: String, val mediaType: String? = null) : Serializable(source)

Data class representing a genre (e.g., for movies or TV shows).

This class is serializable using both Kotlin serialization and Java serialization.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, mediaType: String? = null)

Properties

Link copied to clipboard
val id: Int

The unique identifier of the genre.

Link copied to clipboard
val mediaType: String? = null

The type of media this genre applies to (optional).

Link copied to clipboard

The name of the genre.