einar
03/20/2019, 8:42 PMsealed class
for this but I’m falling short when it comes to supporting the de-serialization of the response.
So something like
sealed class ApiResponse
<http://client.post|client.post><ApiResponse> { }
@Serializable data class ErrorResponse(...) : ApiResponse()
@Serializable data class SuccessResponse(..) : ApiResponse()
r4zzz4k
03/20/2019, 8:50 PMKotlinxSerializer
? Is it JVM or some other target?einar
03/20/2019, 8:52 PMr4zzz4k
03/20/2019, 9:00 PMeinar
03/20/2019, 9:16 PMr4zzz4k
03/20/2019, 9:18 PM