fromJson method
Implementation
@override
BoxShape? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'circle':
return BoxShape.circle;
case 'rectangle':
return BoxShape.rectangle;
}
throw 'Unsuported_Json_Value';
}