Ruben Quadros
11/21/2021, 10:27 AMSerializer for class 'Void' is not found
sealed class ResponseClass<S, E> {
data class SuccessResponse<S>(val body: S): ResponseClass<S, Nothing>()
object SuccessNoBody: ResponseClass<Nothing, Nothing>()
data class ErrorResponse<E>(val error: E): ResponseClass<Nothing, E>()
}