Tournament class Null safety

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

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.
read-only, override
idTournament String
final
name String?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
typeName String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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