Skip to content

Commit

Permalink
team detail
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sidhdhi-p committed Mar 19, 2024
1 parent 71ff568 commit 896c040
Show file tree
Hide file tree
Showing 20 changed files with 1,718 additions and 91 deletions.
8 changes: 8 additions & 0 deletions data/lib/api/match/match_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class MatchModel with _$MatchModel {
required MatchStatus match_status,
TossDecision? toss_decision,
String? toss_winner_id,
String? current_playing_team_id,
}) = _MatchModel;

factory MatchModel.fromJson(Map<String, dynamic> json) =>
Expand All @@ -43,6 +44,9 @@ class MatchTeamModel with _$MatchTeamModel {
required TeamModel team,
String? captain_id,
String? admin_id,
double? over,
int? run,
int? wicket,
@Default([]) List<MatchPlayer> squad,
}) = _MatchTeamModel;

Expand Down Expand Up @@ -85,6 +89,7 @@ class AddEditMatchRequest with _$AddEditMatchRequest {
required MatchStatus match_status,
TossDecision? toss_decision,
String? toss_winner_id,
String? current_playing_team_id,
}) = _AddEditMatchRequest;

factory AddEditMatchRequest.fromJson(Map<String, dynamic> json) =>
Expand All @@ -97,6 +102,9 @@ class AddMatchTeamRequest with _$AddMatchTeamRequest {
required String team_id,
String? captain_id,
String? admin_id,
double? over,
int? run,
int? wicket,
@Default([]) List<MatchPlayerRequest> squad,
}) = _AddMatchTeamRequest;

Expand Down
Loading

0 comments on commit 896c040

Please sign in to comment.