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