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