toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final command = this.command;
  final interval = this.interval;
  final retries = this.retries;
  final startPeriod = this.startPeriod;
  final timeout = this.timeout;
  return {
    'command': command,
    if (interval != null) 'interval': interval,
    if (retries != null) 'retries': retries,
    if (startPeriod != null) 'startPeriod': startPeriod,
    if (timeout != null) 'timeout': timeout,
  };
}