Map<String, dynamic> toJson() { return { if (adjacentIntervals != null) 'adjacentIntervals': adjacentIntervals, }; }