TeamPlayers class Null safety

Response example:

{
"idteam": 58380,
"idseason": 54,
"players": [
    "2027",
    "17579",
    "71714",
    "106446",
    "128496"
],
"captain": "2027"
}
Annotations

Constructors

TeamPlayers({int? idTeam, int? idSeason, List<String>? players, String? captain})
const
TeamPlayers.fromJson(String str)
Decodes TeamPlayers object from json string
factory
TeamPlayers.fromMap(Map<String, dynamic> json)
Decodes TeamPlayers object from json map
factory

Properties

captain String?
final
hashCode int
The hash code for this object.
read-only, override
idSeason int?
final
idTeam int?
final
players List<String>?
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 TeamPlayers object to json string
toMap() Map<String, dynamic>
Encodes TeamPlayers object to json map
toString() String
A string representation of this object.
override

Operators

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