https://github.com/edufolly/model_code_generator
A model generator to use with FollyFields.
https://github.com/edufolly/model_code_generator
dart flutter folly-fields model modeling
Last synced: about 1 year ago
JSON representation
A model generator to use with FollyFields.
- Host: GitHub
- URL: https://github.com/edufolly/model_code_generator
- Owner: edufolly
- License: mit
- Created: 2021-01-04T00:31:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-21T21:41:51.000Z (about 5 years ago)
- Last Synced: 2025-04-09T08:44:31.708Z (about 1 year ago)
- Topics: dart, flutter, folly-fields, model, modeling
- Language: Dart
- Homepage: https://edufolly.github.io/model_code_generator/
- Size: 1.26 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Model Code Generator
A model generator to use
with [FollyFields](https://github.com/edufolly/folly_fields).
:star: to support the project.
## Web App
https://edufolly.github.io/model_code_generator/
## Getting Started
JSON examples:
### Company
```json
{
"name": "Company",
"languageType": "Dart",
"packagePath": "my_app/models",
"idType": "Integer",
"attributes": [
{
"name": "active",
"type": "Boolean",
"internalType": "Empty",
"internalName": "",
"nullAware": "true"
},
{
"name": "cnpj",
"type": "String",
"internalType": "Empty",
"internalName": "",
"nullAware": ""
},
{
"name": "companyName",
"type": "String",
"internalType": "Empty",
"internalName": "",
"nullAware": ""
},
{
"name": "tradeName",
"type": "String",
"internalType": "Empty",
"internalName": "",
"nullAware": ""
}
],
"searchTerm": "tradeName",
"toString": "tradeName",
"moreCode": ""
}
```
### User
```json
{
"name": "User",
"languageType": "Dart",
"packagePath": "my_app/models",
"idType": "Integer",
"attributes": [
{
"name": "active",
"type": "Boolean",
"internalType": "Empty",
"internalName": "",
"nullAware": "true"
},
{
"name": "companies",
"type": "List",
"internalType": "Model",
"internalName": "Company",
"nullAware": ""
},
{
"name": "email",
"type": "String",
"internalType": "Empty",
"internalName": "",
"nullAware": ""
},
{
"name": "forceResetPassword",
"type": "Boolean",
"internalType": "Empty",
"internalName": "",
"nullAware": "false"
},
{
"name": "name",
"type": "String",
"internalType": "Empty",
"internalName": "",
"nullAware": ""
},
{
"name": "pass",
"type": "String",
"internalType": "Empty",
"internalName": "",
"nullAware": ""
}
],
"searchTerm": "email",
"toString": "email",
"moreCode": ""
}
```