TournamentTeam class Null safety

Response example:

{
"idteam": "58380",
"recaps": [
    {
        "idplayer": "2027",
        "is_captain": "1",
        "is_base": "1",
        "is_foreign": "0"
    },
    {
        "idplayer": "68445",
        "is_captain": "0",
        "is_base": "1",
        "is_foreign": "0"
    },
    {
        "idplayer": "71714",
        "is_captain": "0",
        "is_base": "1",
        "is_foreign": "0"
    },
    {
        "idplayer": "79847",
        "is_captain": "0",
        "is_base": "1",
        "is_foreign": "0"
    },
    {
        "idplayer": "106446",
        "is_captain": "0",
        "is_base": "0",
        "is_foreign": "1"
    },
    {
        "idplayer": "147205",
        "is_captain": "0",
        "is_base": "1",
        "is_foreign": "0"
    }
]
}
Annotations

Constructors

TournamentTeam({String? idTeam, List<TournamentTeamPlayer>? recaps})
const
TournamentTeam.fromJson(String str)
Decodes TournamentTeam object from json string
factory
TournamentTeam.fromMap(Map<String, dynamic> json)
Decodes TournamentTeam object from json map
factory

Properties

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

Methods

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

Operators

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