Gopal S Akshintala
02/03/2024, 12:59 PMisSuccessful. A over simplified example:
Success response:
{
"isSuccessful": true,
"value": "Okay!"
}
Failure response:
{
"isSuccessful": false,
"error_logs": {
"order": 66
}
}
All the examples I referred use String as TypeLabel. How can I use boolean field instead of String?Andrew O'Hara
02/03/2024, 1:29 PMJsonAdapter to do it.
See the Http4k SQSEventAdapter and registering it to a custom Moshi.Gopal S Akshintala
02/03/2024, 2:15 PMPolymorphicJsonAdapterFactory. Thanks for confirming!