TimeConstraint class

Represents the time constraint of an event or activity.

Each instance holds an activity domain and a list of time slots.

Constructors

TimeConstraint({String? activityDomain, List<TimeSlot?>? timeSlots})
Creates a new instance of TimeConstraint.
TimeConstraint.fromJson(Map<String, dynamic> json)
Creates a new instance of TimeConstraint from a JSON object.
factory

Properties

activityDomain String?
The domain of the activity.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeSlots List<TimeSlot?>?
The list of possible time slots for the activity.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this TimeConstraint instance to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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