OrganisationResource

@JsonClass(generateAdapter = true)
data class OrganisationResource(@Json(name = "created_at") val createdAt: String, @Json(name = "updated_at") val updatedAt: String, @Json(name = "id") val id: String, @Json(name = "name") val name: String, @Json(name = "icon") val icon: String, @Json(name = "has_active_subscription") val hasActiveSubscription: Boolean, @Json(name = "is_admin") val isAdmin: Boolean, @Json(name = "links") val links: Links) : Resource, HasName, HasIcon, HasLinks

Data class representing an OrganisationResource. Conforms to Resource, HasName, HasIcon and HasLinks.

Parameters

createdAt

The timestamp when the organisation was created.

updatedAt

The timestamp when the organisation was last updated.

id

The unique identifier of the organisation.

name

The name of the organisation.

icon

The icon of the organisation.

hasActiveSubscription

Indicates whether the organisation has an active subscription.

isAdmin

Indicates whether the authenticated user is an administrator of the organisation.

links

The links associated with the organisation.

Constructors

Link copied to clipboard
constructor(@Json(name = "created_at") createdAt: String, @Json(name = "updated_at") updatedAt: String, @Json(name = "id") id: String, @Json(name = "name") name: String, @Json(name = "icon") icon: String, @Json(name = "has_active_subscription") hasActiveSubscription: Boolean, @Json(name = "is_admin") isAdmin: Boolean, @Json(name = "links") links: Links)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val createdAt: String
Link copied to clipboard
Link copied to clipboard
open override val icon: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val links: Links
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val updatedAt: String