There is a difference between JSON written in Dart source code and JSON received over network. code example
Example: flutter generate json files
flutter packages pub run build_runner build
flutter packages pub run build_runner build