ProcessorIOSpec constructor

ProcessorIOSpec({
  1. Iterable<ProcessorIOSpec_GraphInputChannelSpec>? graphInputChannelSpecs,
  2. Iterable<ProcessorIOSpec_GraphOutputChannelSpec>? graphOutputChannelSpecs,
  3. Iterable<ProcessorIOSpec_InstanceResourceInputBindingSpec>? instanceResourceInputBindingSpecs,
  4. Iterable<ProcessorIOSpec_InstanceResourceOutputBindingSpec>? instanceResourceOutputBindingSpecs,
})

Implementation

factory ProcessorIOSpec({
  $core.Iterable<ProcessorIOSpec_GraphInputChannelSpec>? graphInputChannelSpecs,
  $core.Iterable<ProcessorIOSpec_GraphOutputChannelSpec>? graphOutputChannelSpecs,
  $core.Iterable<ProcessorIOSpec_InstanceResourceInputBindingSpec>? instanceResourceInputBindingSpecs,
  $core.Iterable<ProcessorIOSpec_InstanceResourceOutputBindingSpec>? instanceResourceOutputBindingSpecs,
}) {
  final $result = create();
  if (graphInputChannelSpecs != null) {
    $result.graphInputChannelSpecs.addAll(graphInputChannelSpecs);
  }
  if (graphOutputChannelSpecs != null) {
    $result.graphOutputChannelSpecs.addAll(graphOutputChannelSpecs);
  }
  if (instanceResourceInputBindingSpecs != null) {
    $result.instanceResourceInputBindingSpecs.addAll(instanceResourceInputBindingSpecs);
  }
  if (instanceResourceOutputBindingSpecs != null) {
    $result.instanceResourceOutputBindingSpecs.addAll(instanceResourceOutputBindingSpecs);
  }
  return $result;
}