I have response like below
{"statusMessage":"Get details successfully","statusCode":"200","error":null,"finResult":{"count":0,"result":{"generatedAllocation":[{"sub_asset_class_weight":[["Large-Cap",100.0]],"weight":40.01051173604412,"asset":"Equity"},{"sub_asset_class_weight":[["Low Duration",7.052961633686329],["Ultra Short Duration",51.01188034311372],["Short Duration",41.93515802319997]],"weight":59.98948826395587,"asset":"FixedIncome"}],"executedAllocation":null},"start":0}}
I want to create a model class for above response. I also tried JsonToDart But it shows error "The Dart code generated is invalid". I want access sub_asset_class_weight property from all objects.
Any help will be appreciated. TIA