Skip to content

Commit 6630f3b

Browse files
authored
docs: upgrade freezed class to match freezed version 3.* (#360)
1 parent fc8512c commit 6630f3b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bricks/stac_parser/__brick__/{{#snakecase}}stac_{{name}}{{/snakecase}}/{{#snakecase}}stac_{{name}}{{/snakecase}}.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ part '{{#snakeCase}}stac_{{name}}{{/snakeCase}}.freezed.dart';
44
part '{{#snakeCase}}stac_{{name}}{{/snakeCase}}.g.dart';
55

66
@freezed
7-
class Stac{{#pascalCase}}{{name}}{{/pascalCase}} with _$Stac{{#pascalCase}}{{name}}{{/pascalCase}} {
7+
abstract class Stac{{#pascalCase}}{{name}}{{/pascalCase}} with _$Stac{{#pascalCase}}{{name}}{{/pascalCase}} {
88
const factory Stac{{#pascalCase}}{{name}}{{/pascalCase}}() = _Stac{{#pascalCase}}{{name}}{{/pascalCase}};
99

1010
factory Stac{{#pascalCase}}{{name}}{{/pascalCase}}.fromJson(Map<String, dynamic> json) => _$Stac{{#pascalCase}}{{name}}{{/pascalCase}}FromJson(json);

website/docs/concepts/action_parsers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For this JSON Structure, we can create a data class to represent the custom acti
3636

3737
```dart
3838
@freezed
39-
class PrintAction with _$PrintAction {
39+
abstract class PrintAction with _$PrintAction {
4040
const factory PrintAction({
4141
required String message,
4242
}) = _PrintAction;

website/docs/concepts/parsers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Here we are using the freezed package to create the data class. But you can use
4545

4646
```dart
4747
@freezed
48-
class CustomButton with _$CustomButton {
48+
abstract class CustomButton with _$CustomButton {
4949
const factory CustomButton({
5050
required String text,
5151
required String color,

0 commit comments

Comments
 (0)