Tournament class
Response example:
{
"idtournament": "6431",
"name": "Онлайн: 22:00 MSK / KYIV \"Триптих. Лето\" (NEW!)",
"date_start": "2021-06-04 22:00:00",
"date_end": "0000-00-00 00:00:00",
"type_name": "Обычный",
"archive": "2021-06-04 22:00:00",
"date_archived_at": "2021-06-04 22:00:00"
}
- Annotations
-
- @immutable
Constructors
- Tournament({required String idTournament, String? name, DateTime? dateStart, DateTime? dateEnd, String? typeName, String? archive, DateTime? dateArchivedAt})
-
const
- Tournament.fromJson(String str)
-
Decodes Tournament object from json string
factory
-
Tournament.fromMap(Map<
String, dynamic> json) -
Decodes Tournament object from json map
factory
Properties
- archive → String?
-
final
- dateArchivedAt → DateTime?
-
final
- dateEnd → DateTime?
-
final
- dateStart → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- idTournament → String
-
final
- name → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Encodes Tournament object to json string
-
toMap(
) → Map< String, dynamic> - Encodes Tournament object to json map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override