Json

data class Json<T>(val message: String, val code: Int, val data: T? = null)

This class is a generic class that wraps the response of the API. It contains the message, the status code and the data.

Constructors

Link copied to clipboard
constructor(message: String, statusCode: StatusCode, data: T? = null)
constructor(message: String, code: Int, data: T? = null)

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard
val data: T? = null
Link copied to clipboard