When working with Nested json object or Complex json using Dio. Give me this error
type 'Null' is not a subtype of type 'String'
My question is Null Safety is the first thing thats i am doing but if have any unconsciously required field with null from server in that time only give me this error, But Nested or Complex Json which Model variable is getting null it' s hard to find manually. But when working with native Android and call API with Retrofit . Retrofit gives me specific point (Model variable) getting null.But flutter Dio does not give.
Have any solution for this problem like When Network Data and local Model type will be mismatch, Show me error with which data Model variable has got null. Please help me I am facing major issue with this problem.
getting Error with Network call flutter Dio