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