fromJson method
Implementation
@override
PageTransitionsBuilder? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'cupertino':
return const CupertinoPageTransitionsBuilder();
case 'fadeUpwards':
return const FadeUpwardsPageTransitionsBuilder();
case 'openUpwards':
return const OpenUpwardsPageTransitionsBuilder();
case 'zoom':
return const ZoomPageTransitionsBuilder();
}
throw 'Unsuported_Json_Value';
}