Is there any way to eloquently serialize this pay...
# serialization
a
Is there any way to eloquently serialize this payload (without having to write 100's of lines of special serialization logic):?
Copy code
val 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:
Copy code
@Serializable
    @SerialName("ok")
    data class Ok<T, out L>(
        val data: T,
        val location: L,
        val hasMore: Boolean,
    ) : Response<T>(