Method constructor
Method({})
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;
}