Method constructor

Method({
  1. String? name,
  2. String? requestTypeUrl,
  3. bool? requestStreaming,
  4. String? responseTypeUrl,
  5. bool? responseStreaming,
  6. Iterable<Option>? options,
  7. Syntax? syntax,
})

Implementation

factory Method({
  $core.String? name,
  $core.String? requestTypeUrl,
  $core.bool? requestStreaming,
  $core.String? responseTypeUrl,
  $core.bool? responseStreaming,
  $core.Iterable<$2.Option>? options,
  $2.Syntax? syntax,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (requestTypeUrl != null) {
    _result.requestTypeUrl = requestTypeUrl;
  }
  if (requestStreaming != null) {
    _result.requestStreaming = requestStreaming;
  }
  if (responseTypeUrl != null) {
    _result.responseTypeUrl = responseTypeUrl;
  }
  if (responseStreaming != null) {
    _result.responseStreaming = responseStreaming;
  }
  if (options != null) {
    _result.options.addAll(options);
  }
  if (syntax != null) {
    _result.syntax = syntax;
  }
  return _result;
}