RADRequest constructor

RADRequest({
  1. int? timeLock,
  2. Iterable<RADRetrieve>? retrieve,
  3. RADAggregate? aggregate,
  4. RADTally? tally,
})

Implementation

factory RADRequest({
  int? timeLock,
  Iterable<RADRetrieve>? retrieve,
  RADAggregate? aggregate,
  RADTally? tally,
}) {
  final _result = create();
  if (timeLock != null) {
    _result.timeLock = Int64(timeLock);
  }
  if (retrieve != null) {
    _result.retrieve.addAll(retrieve);
  }
  if (aggregate != null) {
    _result.aggregate = aggregate;
  }
  if (tally != null) {
    _result.tally = tally;
  }
  return _result;
}