toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final playerData = this.playerData;
  final playerId = this.playerId;
  return {
    if (playerData != null) 'PlayerData': playerData,
    if (playerId != null) 'PlayerId': playerId,
  };
}