CronSchedule constructor

CronSchedule({
  1. Int64? second,
  2. Int64? minute,
  3. Int64? hour,
  4. Int64? dayOfMonth,
  5. Int64? month,
  6. Int64? dayOfWeek,
  7. Timestamp? validFrom,
  8. Timestamp? validTo,
})

Implementation

factory CronSchedule({
  $fixnum.Int64? second,
  $fixnum.Int64? minute,
  $fixnum.Int64? hour,
  $fixnum.Int64? dayOfMonth,
  $fixnum.Int64? month,
  $fixnum.Int64? dayOfWeek,
  $0.Timestamp? validFrom,
  $0.Timestamp? validTo,
}) {
  final _result = create();
  if (second != null) {
    _result.second = second;
  }
  if (minute != null) {
    _result.minute = minute;
  }
  if (hour != null) {
    _result.hour = hour;
  }
  if (dayOfMonth != null) {
    _result.dayOfMonth = dayOfMonth;
  }
  if (month != null) {
    _result.month = month;
  }
  if (dayOfWeek != null) {
    _result.dayOfWeek = dayOfWeek;
  }
  if (validFrom != null) {
    _result.validFrom = validFrom;
  }
  if (validTo != null) {
    _result.validTo = validTo;
  }
  return _result;
}