store json into class flutter using api code example Example: flutter generate json files flutter packages pub run build_runner build