TeamPlayers class

Response example:

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

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.
no setteroverride
idSeason int?
final
idTeam int?
final
players List<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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