toJson method
Converts this TimeConstraint instance to a JSON object.
Implementation
Map<String, dynamic> toJson() {
return {
'activityDomain': activityDomain,
'timeSlots': timeSlots?.map((e) => e?.toJson()).toList(),
};
}
Converts this TimeConstraint instance to a JSON object.
Map<String, dynamic> toJson() {
return {
'activityDomain': activityDomain,
'timeSlots': timeSlots?.map((e) => e?.toJson()).toList(),
};
}