Credits

@JsonClass(generateAdapter = true)
data class Credits(val by: List<Credits.CreditsBy>?, val photos_by: List<Credits.CreditsBy>?)

Credits of article

Constructors

Link copied to clipboard
fun Credits(by: List<Credits.CreditsBy>?, photos_by: List<Credits.CreditsBy>?)

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class CreditsBy(    val _id: String?,     val image: Image?,     val name: String?,     val org: String?,     val slug: String?,     val social_links: List<Social>?,     val type: String?,     val url: String?,     val version: String?,     val first_name: String?,     val middle_name: String?,     val last_name: String?,     val suffix: String?,     val byline: String?,     val location: String?,     val division: String?,     val email: String?,     val role: String?,     val expertise: String?,     val affiliation: String?,     val languages: String?,     val bio: String?,     val long_bio: String?,     val books: List<Credits.CreditsBy.Book>?,     val education: List<Credits.CreditsBy.School>?,     val awards: List<Credits.CreditsBy.Award>?,     val contributor: Boolean?,     val subtype: String?,     val channels: List<String>?,     val alignment: String?,     val additional_properties: Map<String, *>?)

Information about article credit from author or photographer

Properties

Link copied to clipboard
val by: List<Credits.CreditsBy>?

The primary author(s) of this document. For a story, is is the writer or reporter. For an image, it is the photographer.

Link copied to clipboard
val photos_by: List<Credits.CreditsBy>?

The photographer(s) of supplementary images included in this document, if it is a story. Note that if this document is an image, the photographer(s) should appear in the 'by' slot.