@override Object toJson() => { 'fixedDelay': ?fixedDelay?.toJson(), if (percentage case final $1?) 'percentage': encodeDouble($1), };