Skip to content

Commit

Permalink
fix modifier location overrids
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwichel committed Oct 14, 2023
1 parent c3357e3 commit b4a326f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
8 changes: 4 additions & 4 deletions lib/src/shared_model/modifier_location_overrides.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ part 'modifier_location_overrides.g.dart';
@JsonSerializable()
class ModifierLocationOverrides extends Equatable {
const ModifierLocationOverrides({
required this.locationId,
required this.priceMoney,
this.locationId,
this.priceMoney,
});

/// Converts a [Map]<[String], [dynamic]> to a [ModifierLocationOverrides]
Expand All @@ -18,8 +18,8 @@ class ModifierLocationOverrides extends Equatable {
/// Converts a [ModifierLocationOverrides] to a [Map]<[String], [dynamic]>
Map<String, dynamic> toJson() => _$ModifierLocationOverridesToJson(this);

final String locationId;
final Money priceMoney;
final String? locationId;
final Money? priceMoney;

@override
List<Object?> get props => [locationId, priceMoney];
Expand Down
24 changes: 17 additions & 7 deletions lib/src/shared_model/modifier_location_overrides.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4a326f

Please sign in to comment.