Person

@Serializable
data class Person(val id: Int, val name: String, val imdbId: String? = null, val biography: String? = null, val homepage: String? = null, val character: String? = null, val knownFor: String? = null, val birthDay: String? = null, val deathDay: String? = null, val rawGender: Int? = null, val profilePath: String? = null) : Serializable(source)

Represents a person with details such as name, biography, and professional information.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, imdbId: String? = null, biography: String? = null, homepage: String? = null, character: String? = null, knownFor: String? = null, birthDay: String? = null, deathDay: String? = null, rawGender: Int? = null, profilePath: String? = null)

Properties

Link copied to clipboard
val biography: String? = null

Optional biography of the person.

Link copied to clipboard
@SerializedName(value = "birthday")
val birthDay: String? = null

Optional birth date of the person.

Link copied to clipboard
val character: String? = null

Optional name of the character the person is known for.

Link copied to clipboard
@SerializedName(value = "deathday")
val deathDay: String? = null

Optional death date of the person, if applicable.

Link copied to clipboard
val homepage: String? = null

Optional homepage URL of the person.

Link copied to clipboard
val id: Int

Unique identifier for the person.

Link copied to clipboard
val imdbId: String? = null

Optional IMDb identifier for the person.

Link copied to clipboard
@SerializedName(value = "known_for_department")
val knownFor: String? = null

Optional department the person is known for, e.g., acting, directing.

Link copied to clipboard

Name of the person.

Link copied to clipboard
@SerializedName(value = "profile_path")
val profilePath: String? = null

Optional path to the profile image of the person.

Link copied to clipboard
@SerializedName(value = "gender")
val rawGender: Int? = null

Optional raw gender value where 1 = female, 2 = male, etc.