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