@override Map<String, dynamic>? toJson(Radius? object) { if (object == null) return null; return <String, dynamic>{ 'type': 'elliptical', 'x': object.x, 'y': object.y, }; }