TimeInterval class

A time interval.

OMH version 1.0 See time-interval

Implemented types
Mixed in types
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)

Constructors

TimeInterval({DateTime? startDateTime, DateTime? endDateTime, DurationUnitValue? duration, DateTime? date, String? partOfDay})
All properties are optional (according to OMH specification).
TimeInterval.fromJson(Map<String, dynamic> json)
factory

Properties

date DateTime?
getter/setter pair
duration DurationUnitValue?
getter/setter pair
endDateTime DateTime?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
partOfDay String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDateTime DateTime?
getter/setter pair

Methods

getAdditionalProperties() Map<String, Object>
Gets the additional properties.
inherited
getAdditionalProperty(String name) Object?
Gets an additional property.
inherited
getSchemaId() SchemaId
The schema this class corresponds to
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAdditionalProperty(String path, Object value) → void
Sets an additional property.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

SCHEMA_ID SchemaId
getter/setter pair