Event class

A class representing an event with details such as location, dates, type, and performance metrics.

Constructors

Event({required String key, required int year, required String name, required int time, required String country, required String state, required String district, required String startDate, required String endDate, required String type, required int week, required bool offseason, required String video, required String status, required String statusStr, required int numTeams, required int currentMatch, required int qualMatches, required Epa epa, required Map<String, dynamic> metrics})
Constructs an Event instance with the specified details.
Event.fromJson(Map<String, dynamic> json)
Creates an Event instance from a JSON Map.
factory

Properties

country String
The country where the event took place.
final
currentMatch int
The current match number at the event.
final
district String
The district associated with the event.
final
endDate String
The end date of the event in YYYY-MM-DD format.
final
epa Epa
An Epa object containing EPA (Estimated Performance Average) data for the event.
final
hashCode int
The hash code for this object.
no setterinherited
key String
Unique key identifying the event.
final
metrics Map<String, dynamic>
Additional performance and event metrics stored in a map.
final
name String
The name of the event.
final
numTeams int
The number of teams participating in the event.
final
offseason bool
Indicates if the event is an offseason event.
final
qualMatches int
The total number of qualification matches.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate String
The start date of the event in YYYY-MM-DD format.
final
state String
The state where the event took place.
final
status String
The status of the event.
final
statusStr String
A string representation of the event status.
final
time int
The timestamp of the event start time.
final
type String
The type of the event.
final
video String
The video URL associated with the event.
final
week int
The week number in which the event occurs.
final
year int
The year the event took place.
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