toJson method

Map<String, dynamic> toJson()

Converts this TimeConstraint instance to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'activityDomain': activityDomain,
    'timeSlots': timeSlots?.map((e) => e?.toJson()).toList(),
  };
}