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