@devlearning/swagger-generator 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,12 @@ part '{{filename}}.freezed.dart';
7
7
  part '{{filename}}.g.dart';
8
8
 
9
9
  @freezed
10
- abstract class {{modelName}} with _${{modelName}} {
11
- const factory {{modelName}}({
10
+ abstract class {{className}} with _${{className}} {
11
+ const factory {{className}}({
12
12
  {{#fields}}
13
13
  {{required}}{{type}}{{nullable}} {{name}},
14
14
  {{/fields}}
15
- }) = _{{modelName}};
15
+ }) = _{{className}};
16
16
 
17
- factory {{modelName}}.fromJson(Map<String, dynamic> json) => _${{modelName}}FromJson(json);
17
+ factory {{className}}.fromJson(Map<String, dynamic> json) => _${{className}}FromJson(json);
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devlearning/swagger-generator",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Swagger generator apis and models for Angular and NextJS",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -7,12 +7,12 @@ part '{{filename}}.freezed.dart';
7
7
  part '{{filename}}.g.dart';
8
8
 
9
9
  @freezed
10
- abstract class {{modelName}} with _${{modelName}} {
11
- const factory {{modelName}}({
10
+ abstract class {{className}} with _${{className}} {
11
+ const factory {{className}}({
12
12
  {{#fields}}
13
13
  {{required}}{{type}}{{nullable}} {{name}},
14
14
  {{/fields}}
15
- }) = _{{modelName}};
15
+ }) = _{{className}};
16
16
 
17
- factory {{modelName}}.fromJson(Map<String, dynamic> json) => _${{modelName}}FromJson(json);
17
+ factory {{className}}.fromJson(Map<String, dynamic> json) => _${{className}}FromJson(json);
18
18
  }