fromJson static method

HapticFeedbackAction fromJson(
  1. Map<String, dynamic> json
)
override

Implementation

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