BaseResponse

@Serializable
data class BaseResponse<T>(val status: String, val error: String? = null, val data: T? = null)

Constructors

Link copied to clipboard
constructor(status: String, error: String? = null, data: T? = null)

Properties

Link copied to clipboard
val data: T? = null
Link copied to clipboard
val error: String? = null
Link copied to clipboard

Functions

Link copied to clipboard
fun toResult(): Result<T>