SeasonData class

Represents the match statistics for a team in a given season or record.

Constructors

SeasonData({required int wins, required int losses, required int ties, required int count, required double winrate})
SeasonData.fromJson(Map<String, dynamic> json)
Creates a SeasonData instance from a JSON Map.
factory

Properties

count int
The total number of matches played.
final
hashCode int
The hash code for this object.
no setterinherited
losses int
The number of losses.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ties int
The number of ties.
final
winrate double
The win rate as a percentage.
final
wins int
The number of wins achieved.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the SeasonData instance to a JSON Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited