Davide Giuseppe Farella
04/16/2023, 6:41 PMdata 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