toJson method

Map<String, dynamic> toJson()

Implementation

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