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