PlayerTeam class Null safety

Response example:

{
"idplayer": "147205",
"idteam": "58380",
"idseason": "50",
"is_captain": "0",
"added_since": "2017-04-21"
}
Annotations

Constructors

PlayerTeam({required String idPlayer, required String idTeam, String? idSeason, String? isCaptain, DateTime? addedSince})
const
PlayerTeam.fromJson(String str)
Decodes PlayerTeam object from json string
factory
PlayerTeam.fromMap(Map<String, dynamic> json)
Decodes PlayerTeam object from json map
factory

Properties

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

Operators

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