toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final latencyInMs = this.latencyInMs;
  final playerAttributes = this.playerAttributes;
  final playerId = this.playerId;
  final team = this.team;
  return {
    if (latencyInMs != null) 'LatencyInMs': latencyInMs,
    if (playerAttributes != null) 'PlayerAttributes': playerAttributes,
    if (playerId != null) 'PlayerId': playerId,
    if (team != null) 'Team': team,
  };
}