You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to generate models from several JSON files in my Flutter project. I am facing an issue where the generated model structures are colliding with each other. Here is an example of my JSON file structure:
get generate model with assets/models/test.json
get generate model with assets/models/myTest.json
The generated models have the same structure for the 'data' part. I want to avoid duplicating the 'data' model without having to manually change it every time I generate the models.
Is there a way or specific configuration in 'get_cli' to avoid duplicating models that have the same structure? Or is there another solution that I can apply to this issue?
The text was updated successfully, but these errors were encountered:
irayshi
changed the title
Cara Menghindari Duplikasi Model Ketika Menggunakan get_cli untuk Generate Model dari JSON
How to Avoid Model Duplication When Using 'get_cli' to Generate Models from JSON
Jun 21, 2024
I am trying to generate models from several JSON files in my Flutter project. I am facing an issue where the generated model structures are colliding with each other. Here is an example of my JSON file structure:
test.json:
myTest.json:
When I run the following commands:
The generated models have the same structure for the 'data' part. I want to avoid duplicating the 'data' model without having to manually change it every time I generate the models.
Is there a way or specific configuration in 'get_cli' to avoid duplicating models that have the same structure? Or is there another solution that I can apply to this issue?
The text was updated successfully, but these errors were encountered: