@override String? toJson(BoxShape? object) { if (object == null) return null; switch (object) { case BoxShape.circle: return 'circle'; case BoxShape.rectangle: return 'rectangle'; } }