NestedTestAllTypes constructor

NestedTestAllTypes({
  1. NestedTestAllTypes? child,
  2. TestAllTypes? payload,
  3. Iterable<NestedTestAllTypes>? repeatedChild,
  4. NestedTestAllTypes? lazyChild,
  5. TestAllTypes? eagerChild,
})

Implementation

factory NestedTestAllTypes({
  NestedTestAllTypes? child,
  TestAllTypes? payload,
  $core.Iterable<NestedTestAllTypes>? repeatedChild,
  NestedTestAllTypes? lazyChild,
  TestAllTypes? eagerChild,
}) {
  final _result = create();
  if (child != null) {
    _result.child = child;
  }
  if (payload != null) {
    _result.payload = payload;
  }
  if (repeatedChild != null) {
    _result.repeatedChild.addAll(repeatedChild);
  }
  if (lazyChild != null) {
    _result.lazyChild = lazyChild;
  }
  if (eagerChild != null) {
    _result.eagerChild = eagerChild;
  }
  return _result;
}