Skip to content

Commit

Permalink
Add default value for phone param
Browse files Browse the repository at this point in the history
  • Loading branch information
MDikkii committed Oct 22, 2023
1 parent a75e2d2 commit 63b864d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipients_app/lib/data/models/phone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ part "phone.g.dart";

@JsonSerializable()
class Phone extends Equatable {
@JsonKey(name: "phone")
@JsonKey(name: "phone", defaultValue: 0)
final int phoneNumber;

const Phone(this.phoneNumber);
Expand Down
2 changes: 1 addition & 1 deletion recipients_app/lib/data/models/phone.g.dart

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

0 comments on commit 63b864d

Please sign in to comment.