Exercise constructor

Exercise({
  1. Iterable<Cycle>? cycles,
  2. Iterable<String>? activeInstructionCodes,
  3. Iterable<Int64>? followUpDates,
})

Implementation

factory Exercise({
  $core.Iterable<Cycle>? cycles,
  $core.Iterable<$core.String>? activeInstructionCodes,
  $core.Iterable<$fixnum.Int64>? followUpDates,
}) {
  final _result = create();
  if (cycles != null) {
    _result.cycles.addAll(cycles);
  }
  if (activeInstructionCodes != null) {
    _result.activeInstructionCodes.addAll(activeInstructionCodes);
  }
  if (followUpDates != null) {
    _result.followUpDates.addAll(followUpDates);
  }
  return _result;
}