toJson method

Map<String, dynamic> toJson()

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