PlayerTeam.fromMap constructor
Decodes PlayerTeam object from json map
Implementation
factory PlayerTeam.fromMap(Map<String, dynamic> json) => PlayerTeam(
idPlayer: json['idplayer'] == null ? 'null' : json['idplayer'],
idTeam: json['idteam'] == null ? 'null' : json['idteam'],
idSeason: json['idseason'] == null ? null : json['idseason'],
isCaptain: json['is_captain'] == null ? null : json['is_captain'],
addedSince: json['added_since'] == null
? null
: DateTime.parse(json['added_since']),
);