Match class
Represents a match in a competition, including details about teams, scores, predictions, and status.
Constructors
-
Match({required String matchId, required String eventId, required String matchType, required int redScore, required int blueScore, required int year, required bool offseason, required int week, required bool elim, required String compLevel, required int setNumber, required int matchNumber, required String matchName, required int time, required int predictedTime, required String status, required String video, required List<
String> redTeamKeys, required List<String> blueTeamKeys, required String predictedWinner, required double redWinProb, required double redScorePredicted, required double blueScorePredicted}) - Constructs a Match instance with specified properties.
-
Match.fromJson(Map<
String, dynamic> json) -
Creates a Match instance from a JSON Map.
factory
Properties
- blueScore → int
-
Score achieved by the blue alliance in this match.
final
- blueScorePredicted → double
-
The predicted score for the blue alliance.
final
-
blueTeamKeys
→ List<
String> -
A list of team keys for teams in the blue alliance.
final
- compLevel → String
-
The competition level of the match, such as qualification or finals.
final
- elim → bool
-
Indicates if this match is part of the elimination rounds.
final
- eventId → String
-
Identifier for the event in which the match took place.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- matchId → String
-
Unique identifier for the match.
final
- matchName → String
-
The display name of the match.
final
- matchNumber → int
-
The match number within the event.
final
- matchType → String
-
The type or level of the match (e.g., qualification, elimination).
final
- offseason → bool
-
Indicates if the match was part of an offseason event.
final
- predictedTime → int
-
The predicted time for the match start.
final
- predictedWinner → String
-
The predicted winner of the match (either "red" or "blue").
final
- redScore → int
-
Score achieved by the red alliance in this match.
final
- redScorePredicted → double
-
The predicted score for the red alliance.
final
-
redTeamKeys
→ List<
String> -
A list of team keys for teams in the red alliance.
final
- redWinProb → double
-
The probability of the red alliance winning, as a percentage.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setNumber → int
-
The set number of the match within a series.
final
- status → String
-
The status of the match (e.g., scheduled, completed).
final
- time → int
-
The time at which the match took place.
final
- video → String
-
URL for the match video.
final
- week → int
-
The week number of the event where the match occurred.
final
- year → int
-
The year the match was played.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited