toJson method
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,
};
}