toJson method

Map<String, dynamic> toJson()

Implementation

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