MethodOptions constructor

MethodOptions({
  1. bool? deprecated,
  2. MethodOptions_IdempotencyLevel? idempotencyLevel,
  3. Iterable<UninterpretedOption>? uninterpretedOption,
})

Implementation

factory MethodOptions({
  $core.bool? deprecated,
  MethodOptions_IdempotencyLevel? idempotencyLevel,
  $core.Iterable<UninterpretedOption>? uninterpretedOption,
}) {
  final _result = create();
  if (deprecated != null) {
    _result.deprecated = deprecated;
  }
  if (idempotencyLevel != null) {
    _result.idempotencyLevel = idempotencyLevel;
  }
  if (uninterpretedOption != null) {
    _result.uninterpretedOption.addAll(uninterpretedOption);
  }
  return _result;
}