Skip to content

Commit b4a326f

Browse files
committed
fix modifier location overrids
1 parent c3357e3 commit b4a326f

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

lib/src/shared_model/modifier_location_overrides.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ part 'modifier_location_overrides.g.dart';
77
@JsonSerializable()
88
class ModifierLocationOverrides extends Equatable {
99
const ModifierLocationOverrides({
10-
required this.locationId,
11-
required this.priceMoney,
10+
this.locationId,
11+
this.priceMoney,
1212
});
1313

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

21-
final String locationId;
22-
final Money priceMoney;
21+
final String? locationId;
22+
final Money? priceMoney;
2323

2424
@override
2525
List<Object?> get props => [locationId, priceMoney];

lib/src/shared_model/modifier_location_overrides.g.dart

+17-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)