@override Object toJson() => { if (maxDuration != null) 'maxDuration': maxDuration!.toJson(), if (endTime != null) 'endTime': endTime!.toJson(), };