Skip to content

Commit

Permalink
fix: JsonSerializable not recognizing static variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Mar 31, 2023
1 parent eaaa413 commit b0d2c55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions wrestling_scoreboard_common/lib/src/data/bout_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ class BoutConfig extends DataObject {
final Duration injuryDuration;
final int periodCount;

BoutConfig(
{int? id,
this.periodDuration = defaultPeriodDuration,
this.breakDuration = defaultBreakDuration,
this.activityDuration = defaultActivityDuration,
this.injuryDuration = defaultInjuryDuration,
this.periodCount = defaultPeriodCount})
: super(id);
BoutConfig({
int? id,
this.periodDuration = BoutConfig.defaultPeriodDuration,
this.breakDuration = BoutConfig.defaultBreakDuration,
this.activityDuration = BoutConfig.defaultActivityDuration,
this.injuryDuration = BoutConfig.defaultInjuryDuration,
this.periodCount = BoutConfig.defaultPeriodCount,
}) : super(id);

factory BoutConfig.fromJson(Map<String, dynamic> json) => _$BoutConfigFromJson(json);

Expand Down
10 changes: 5 additions & 5 deletions wrestling_scoreboard_common/lib/src/data/bout_config.g.dart

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

0 comments on commit b0d2c55

Please sign in to comment.