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