You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I have to workaround it by implementing a private struct for org field and map to it first, but it would be better if the code above would just return nil without crashing
The text was updated successfully, but these errors were encountered:
This construction
is not really safe to use in case when we try to access a field that is not an object.
Say, we have this json:
And this model:
Sometimes, by accident, server may return this json:
In that case I get SIGABRT:
Right now I have to workaround it by implementing a private struct for org field and map to it first, but it would be better if the code above would just return nil without crashing
The text was updated successfully, but these errors were encountered: