Skip to content

Commit 1d46691

Browse files
robelatorclaude
andcommitted
+Update and format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bb0f5d5 commit 1d46691

8 files changed

Lines changed: 242 additions & 237 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[![banner](https://github.com/dev-cetera/df_generate_dart_models/blob/v0.14.3/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
1+
[![banner](https://github.com/dev-cetera/df_generate_dart_models/blob/v0.14.4/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
22

33
[![pub](https://img.shields.io/pub/v/df_generate_dart_models.svg)](https://pub.dev/packages/df_generate_dart_models)
4-
[![tag](https://img.shields.io/badge/Tag-v0.14.3-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_models/tree/v0.14.3)
4+
[![tag](https://img.shields.io/badge/Tag-v0.14.4-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_models/tree/v0.14.4)
55
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
66
[![sponsor](https://img.shields.io/badge/Sponsor-grey?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
77
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/t0mb3rr)
@@ -17,7 +17,7 @@ A tool for generating data models and classes from annotations, offering greater
1717

1818
Below are some basic steps to get you started with this package. This package is designed to work with the [`df_generate_dart_models_core`](https://pub.dev/packages/df_generate_dart_models_core) package, which provides the core functionality for generating models.
1919

20-
The example below provides a glimpse of what this package can do. The package includes advanced features such as AI-driven generation, customizable type mappers, template files, model conversion to other programming languages, and mor but these advanced features are still in development and not yet documented. Feel free to contact the developer if you require more information.
20+
The example below provides a glimpse of what this package can do. The package includes advanced features such as AI-driven generation, customizable type mappers, template files, model conversion to other programming languages, and more but these advanced features are still in development and not yet documented. Feel free to contact the developer if you require more information.
2121

2222
## How to Use
2323

@@ -27,7 +27,7 @@ Add [`df_generate_dart_models_core`](https://pub.dev/packages/df_generate_dart_m
2727

2828
```yaml
2929
dependencies:
30-
df_generate_dart_models_core: 0.9.22 # Fixed version to ensure compatibility and avoid issues from frequent updates.
30+
df_generate_dart_models_core: 0.9.24 # Fixed version to ensure compatibility and avoid issues from frequent updates.
3131
```
3232
3333
### Step 2
@@ -88,7 +88,7 @@ Save the file somewhere in its own directory, for example `lib/models/model_user
8888

8989
#### Without Visual Studio Code
9090

91-
1. Install this tool by running `dart pub global activate df_generate_dart_models 0.14.0` in your terminal. You can replace `0.14.0` with any other version or omit it to install the latest version.
91+
1. Install this tool by running `dart pub global activate df_generate_dart_models` in your terminal.
9292
2. In your project, open a terminal at the desired folder, e.g. `cd lib/models/model_user/model_user.dart`.
9393
3. Run `--models-min`. This will generate the `_model_user.g.dart` file in the same directory.
9494

_README_CONTENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ A tool for generating data models and classes from annotations, offering greater
22

33
Below are some basic steps to get you started with this package. This package is designed to work with the [`df_generate_dart_models_core`](https://pub.dev/packages/df_generate_dart_models_core) package, which provides the core functionality for generating models.
44

5-
The example below provides a glimpse of what this package can do. The package includes advanced features such as AI-driven generation, customizable type mappers, template files, model conversion to other programming languages, and mor but these advanced features are still in development and not yet documented. Feel free to contact the developer if you require more information.
5+
The example below provides a glimpse of what this package can do. The package includes advanced features such as AI-driven generation, customizable type mappers, template files, model conversion to other programming languages, and more but these advanced features are still in development and not yet documented. Feel free to contact the developer if you require more information.
66

77
## How to Use
88

@@ -12,7 +12,7 @@ Add [`df_generate_dart_models_core`](https://pub.dev/packages/df_generate_dart_m
1212

1313
```yaml
1414
dependencies:
15-
df_generate_dart_models_core: 0.9.22 # Fixed version to ensure compatibility and avoid issues from frequent updates.
15+
df_generate_dart_models_core: 0.9.24 # Fixed version to ensure compatibility and avoid issues from frequent updates.
1616
```
1717
1818
### Step 2
@@ -73,6 +73,6 @@ Save the file somewhere in its own directory, for example `lib/models/model_user
7373

7474
#### Without Visual Studio Code
7575

76-
1. Install this tool by running `dart pub global activate df_generate_dart_models 0.14.0` in your terminal. You can replace `0.14.0` with any other version or omit it to install the latest version.
76+
1. Install this tool by running `dart pub global activate df_generate_dart_models` in your terminal.
7777
2. In your project, open a terminal at the desired folder, e.g. `cd lib/models/model_user/model_user.dart`.
7878
3. Run `--models-min`. This will generate the `_model_user.g.dart` file in the same directory.

bin/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
name: generate_dart_models
1515
homepage: https://dev-cetera.com/
16-
repository: https://github.com/robmllze/df_generate_dart_models
1716
funding:
17+
- https://www.buymeacoffee.com/dev_cetera
18+
- https://www.patreon.com/c/robelator
19+
- https://github.com/sponsors/robelator
1820
- https://www.patreon.com/c/robelator
1921
- https://github.com/sponsors/robelator
2022
- https://www.buymeacoffee.com/dev_cetera

example/models/model_test/_model_test.g.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,8 @@ class ModelTest extends _ModelTest {
209209
@override
210210
Map<String, dynamic> toJson({bool includeNulls = false}) {
211211
try {
212-
final users0 = users
213-
?.map((p0) => p0?.toJson())
214-
.nonNulls
215-
.nullIfEmpty
216-
?.toList();
212+
final users0 =
213+
users?.map((p0) => p0?.toJson()).nonNulls.nullIfEmpty?.toList();
217214
final checks0 = checks?.map((p0) => p0).nonNulls.nullIfEmpty?.toList();
218215
final random0 = random
219216
?.map(

0 commit comments

Comments
 (0)