fromJson method
Implementation
@override
InteractiveInkFeatureFactory? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'splash':
return InkSplash.splashFactory;
case 'ripple':
return InkRipple.splashFactory;
}
throw 'Unsuported_Json_Value';
}