Hello everyone, dumb question. I have my API model...
# serialization
d
Hello everyone, dumb question. I have my API model like
Copy code
data class Model {
  ids {
    trakt: TraktId
    tmdb: TmdbId
}
And the API returns me a list of these. In some extremely rare edge cases
tmdbId
is null. Is there a way to avoid making the field nullable and just discard these items? Ofc I want to keep the model reliable, so I don't wanna discard ANY item that cannot be parsed, but only these with null
tmdbId