Example project with chopper package in Flutter
chopper package: https://pub.dev/packages/chopper
Flutter command for generating code single build: flutter packages pub run build_runner build watch rebuild every time chopper based file are updated: flutter packages pub run build_runner watch