toJson method
Implementation
Map<String, dynamic> toJson() {
final action = this.action;
final timeoutInSeconds = this.timeoutInSeconds;
return {
if (action != null) 'action': action.toValue(),
if (timeoutInSeconds != null) 'timeoutInSeconds': timeoutInSeconds,
};
}