PlayerTournamentResponse class Null safety

Response example:

{
"idplayer": 147205,
"idseason": 54,
"tournaments": [
    {
        "idtournament": "6035",
        "idteam": "58380",
        "in_base_team": "0"
    },
    {
        "idtournament": "7110",
        "idteam": "58380",
        "in_base_team": "0"
    }
]
}
Annotations

Constructors

PlayerTournamentResponse({int? idPlayer, String? idSeason, List<PlayerTournament>? tournaments})
const
PlayerTournamentResponse.fromJson(String str)
Decodes PlayerTournamentResponse object from json string
factory
PlayerTournamentResponse.fromMap(Map<String, dynamic> json)
Decodes PlayerTournamentResponse object from json map
factory

Properties

hashCode int
The hash code for this object.
read-only, override
idPlayer int?
final
idSeason String?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tournaments List<PlayerTournament>?
final

Methods

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

Operators

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