make model classes automatically from your json. flutter code example Example: flutter generate json files flutter packages pub run build_runner build