TimeInterval constructor

TimeInterval({
  1. DateTime? startDateTime,
  2. DateTime? endDateTime,
  3. DurationUnitValue? duration,
  4. DateTime? date,
  5. String? partOfDay,
})

All properties are optional (according to OMH specification).

Note that e.g. duration is not automatically calculated based on start and end time.

Implementation

TimeInterval(
    {this.startDateTime,
    this.endDateTime,
    this.duration,
    this.date,
    this.partOfDay});