flutter-objectbox

how to restore objectbox-model.json file after building


I'm using flutter with windows desktop and forget submit objectbox-model.json file to git. The App already run in the production envionment, how to restore the objectbox-model.json file working with production database, and can help me to persitent to VCS.

how to find the objectbox-model.json file on prodcution env


Solution

  • how to find the objectbox-model.json file on prodcution env

    You can't, your best option is to rebuild it by hand:

    It can help (after committing changes to the JSON file!) to re-run the generator, then to look in the generated Dart file for any missed changes.