success

fun <T> success(data: T): Response.Success<T>

Creates a successful response with the given data.

Return

A Success instance containing the data.

Parameters

data

The data for the successful response.