@override Object toJson() => { if (bounds.isNotDefault) 'bounds': [for (final i in bounds) encodeDouble(i)], };