Method constructor
Method({})
Implementation
factory Method({
$core.String? name,
$core.String? requestTypeUrl,
$core.bool? requestStreaming,
$core.String? responseTypeUrl,
$core.bool? responseStreaming,
$core.Iterable<$5.Option>? options,
$5.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;
}