andries.fc
08/03/2024, 1:10 PMval ok: Response.Ok<*, String> = Response.Ok(
data = mapOf(
"name" to "peter",
"age" to 21,
"today" to LocalDate.of(2024, 1, 16)
),
location = "location",
hasMore = true
)
where response is:
@Serializable
@SerialName("ok")
data class Ok<T, out L>(
val data: T,
val location: L,
val hasMore: Boolean,
) : Response<T>(