toJson method
Implementation
Map<String, dynamic> toJson() {
final latencyInMilliseconds = this.latencyInMilliseconds;
final playerId = this.playerId;
final regionIdentifier = this.regionIdentifier;
return {
if (latencyInMilliseconds != null)
'LatencyInMilliseconds': latencyInMilliseconds,
if (playerId != null) 'PlayerId': playerId,
if (regionIdentifier != null) 'RegionIdentifier': regionIdentifier,
};
}