It seems that when we get errors in parsing the error is logged without a stack trace.
That makes the debugging of the error much more difficult.
Eventually, we need to put a breakpoint in the generated fromJson function and there to see what happened.
This is an example of logging we get:
════════ Exception caught by widgets library ═══════════════════════════════════ type 'Null' is not a subtype of type 'SomeModel' in type cast
The relevant error-causing widget was:
═════════════════════════════════════════════════════════════════════════════
Is this a correct behavior or maybe we messed something with the logs in our App?
It seems that when we get errors in parsing the error is logged without a stack trace. That makes the debugging of the error much more difficult. Eventually, we need to put a breakpoint in the generated fromJson function and there to see what happened.
This is an example of logging we get:
Is this a correct behavior or maybe we messed something with the logs in our App?