fromJson static method
Implementation
static HapticFeedbackAction fromJson(Map<String, dynamic> json) {
if (json['type'] == 'vibrate') {
return VibrateHapticFeedbackAction.fromJson(json);
}
throw Exception('Unknown action type');
}
static HapticFeedbackAction fromJson(Map<String, dynamic> json) {
if (json['type'] == 'vibrate') {
return VibrateHapticFeedbackAction.fromJson(json);
}
throw Exception('Unknown action type');
}