@override Object toJson() { return { if (offset.isNotDefault) 'offset': offset, if (window.isNotDefault) 'window': window, }; }