toJson method
Implementation
@override
String? toJson(CrossFadeState? object) {
if (object == null) return null;
switch (object) {
case CrossFadeState.showFirst:
return 'showFirst';
case CrossFadeState.showSecond:
return 'showSecond';
}
}