TournamentSearch class Null safety

Response example:

{
"items": [
    {
        "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"
    },
    {
        "idtournament": "6621",
        "name": "Онлайн: 22:00 MSK / KYIV \"Молодежный чемпионат Приволжья\" (NEW!)",
        "date_start": "2021-06-08 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"
    }
],
"total_items": "6122",
"current_items": "1-5"
}
Annotations

Constructors

TournamentSearch({List<Tournament>? items, String? totalItems, String? currentItems})
const
TournamentSearch.fromJson(String str)
Decodes TournamentSearch object from json string
factory
TournamentSearch.fromMap(Map<String, dynamic> json)
Decodes TournamentSearch object from json map
factory

Properties

currentItems String?
final
hashCode int
The hash code for this object.
read-only, override
items List<Tournament>?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalItems String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() String
Encodes TournamentSearch object to json string
toMap() Map<String, dynamic>
Encodes TournamentSearch object to json map
toString() String
A string representation of this object.
override

Operators

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