Player.fromJson constructor
Implementation
factory Player.fromJson(Map<String, dynamic> json) {
return Player(
latencyInMs: (json['LatencyInMs'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as int)),
playerAttributes: (json['PlayerAttributes'] as Map<String, dynamic>?)
?.map((k, e) =>
MapEntry(k, AttributeValue.fromJson(e as Map<String, dynamic>))),
playerId: json['PlayerId'] as String?,
team: json['Team'] as String?,
);
}