Run pub get to get packages. Then run pub run build_runner build --delete-conflicting-outputs to run. Sample file StudentInfo.dart available in example/. Running this will generate StudentInfo.g.dart in example/.