@override Map<String, dynamic>? toJson(Size? object) { if (object == null) return null; return { 'height': object.height, 'width': object.width, }; }