UserResource

@JsonClass(generateAdapter = true)
data class UserResource(@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 = "email") val email: String, @Json(name = "administrator") val administrator: Boolean, @Json(name = "token") val token: String, @Json(name = "email_verified_at") val emailVerifiedAt: String?) : Resource, HasName

Data class representing a UserResource. Conforms to Resource and HasName.

Parameters

createdAt

The timestamp when the user was created.

updatedAt

The timestamp when the user was last updated.

id

The unique identifier of the user.

name

The name of the user.

email

The email address of the user.

administrator

Boolean indicating if the user is an Abra Administrator.

token

The authentication token of the user.

emailVerifiedAt

The timestamp when the user's email was verified, or null if it has not been verified.

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 = "email") email: String, @Json(name = "administrator") administrator: Boolean, @Json(name = "token") token: String, @Json(name = "email_verified_at") emailVerifiedAt: String?)

Types

Link copied to clipboard
object Companion

Properties

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