Response

@JsonClass(generateAdapter = true)
data class Response<T>(@Json(name = "data") val data: T)

Data class representing a generic Response of type T.

Parameters

T

The type of the data contained in the response.

data

The data payload of the response.

Constructors

Link copied to clipboard
constructor(@Json(name = "data") data: T)

Properties

Link copied to clipboard
val data: T