toJson method

Map<String, dynamic> toJson()

Implementation

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