toJson method
Implementation
@override
String? toJson(PageTransitionsBuilder? object) {
if (object == null) return null;
if (object is CupertinoPageTransitionsBuilder) {
return 'cupertino';
} else if (object is FadeUpwardsPageTransitionsBuilder) {
return 'fadeUpwards';
} else if (object is OpenUpwardsPageTransitionsBuilder) {
return 'openUpwards';
} else if (object is ZoomPageTransitionsBuilder) {
return 'zoom';
}
throw 'Json_Unsuported_Value';
}