Skip to content

Commit 94b07fb

Browse files
committed
Don't create toJson for ColorRGBA and AlignmentData.
1 parent e983da1 commit 94b07fb

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

lib/src/api/models/alignment.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class AlignmentModel with EquatableMixin, SerializableMixin {
204204
}
205205

206206
/// A data class that holds the x and y values of the alignment.
207-
@JsonSerializable(useDynamics: true)
207+
@JsonSerializable(useDynamics: true, createToJson: false)
208208
class AlignmentData extends Equatable with DynamicSerializableMixin {
209209
/// The x value of the alignment that represents how far it is from
210210
/// the left edge of the rect. -1 means left edge, 0 means center and

lib/src/api/models/alignment.g.dart

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/models/color_rgba.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import '../../../codelessly_api.dart';
1010
part 'color_rgba.g.dart';
1111

1212
/// A color model capable of having variable opacity/alpha.
13-
@JsonSerializable(useDynamics: true)
13+
@JsonSerializable(useDynamics: true, createToJson: false)
1414
class ColorRGBA with EquatableMixin, DynamicSerializableMixin {
1515
/// Red channel value, between 0 and 1
1616
final double r;

lib/src/api/models/color_rgba.g.dart

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)