-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change the module name to snake case
- Loading branch information
Nathan Pham
committed
Jul 15, 2024
1 parent
a1e0aba
commit 933486c
Showing
14 changed files
with
299 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
bricks/ddd/__brick__/{{name.snakeCase()}}/infrastructure/dtos/{{name.snakeCase()}}_dto.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
import '../../domain/entities/{{name.snakeCase()}}.dart'; | ||
|
||
part '{{name.snakeCase()}}_dto.freezed.dart'; | ||
part '{{name.snakeCase()}}_dto.g.dart'; | ||
|
||
@freezed | ||
class {{name.pascalCase()}}Dto with _${{name.pascalCase()}}Dto implements I{{name.pascalCase()}} { | ||
|
||
const factory {{name.pascalCase()}}Dto({ | ||
@JsonKey(name: 'id') @Default(-1) int id, | ||
}) = _{{name.pascalCase()}}Dto; | ||
|
||
factory {{name.pascalCase()}}Dto.fromJson(json) => _${{name.pascalCase()}}DtoFromJson(json); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
bricks/ddd/__brick__/{{name}}/infrastructure/models/{{name.snakeCase()}}_model.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters