Response

@Serializable
data class Response(val data: List<User>, val count: Long, val page: Int, val pageSize: Int, val orderBy: String)

Represents the response from a successful getUsers API call.

Constructors

Link copied to clipboard
constructor(data: List<User>, count: Long, page: Int, pageSize: Int, orderBy: String)

Properties

Link copied to clipboard
@SerialName(value = "count")
val count: Long

The total count of users.

Link copied to clipboard
@SerialName(value = "data")
val data: List<User>

The list of users.

Link copied to clipboard
@SerialName(value = "orderBy")
val orderBy: String

The field by which the results are ordered.

Link copied to clipboard
@SerialName(value = "page")
val page: Int

The current page number.

Link copied to clipboard
@SerialName(value = "pageSize")
val pageSize: Int

The number of users per page.