toJson method
Implementation
Map<String, dynamic> toJson() {
final timeToLiveInSeconds = this.timeToLiveInSeconds;
final turnsToLive = this.turnsToLive;
return {
if (timeToLiveInSeconds != null)
'timeToLiveInSeconds': timeToLiveInSeconds,
if (turnsToLive != null) 'turnsToLive': turnsToLive,
};
}