toJson method

Map<String, dynamic> toJson()

Implementation

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