PageSnapFeedbackMode.fromJson constructor
PageSnapFeedbackMode.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PageSnapFeedbackMode.fromJson(Map<String, dynamic> json) {
String _type = json["_type"];
switch (_type) {
case "PageSnapFunnelAnimation":
return PageSnapFunnelAnimation.fromJson(json);
case "PageSnapCheckMarkAnimation":
return PageSnapCheckMarkAnimation.fromJson(json);
case "PageSnapFeedbackNone":
return PageSnapFeedbackNone.fromJson(json);
default:
throw ArgumentError("Invalid polymorphic type: $_type");
}
}