toJson method

Map<String, dynamic> toJson()

Implementation

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