ApiAction.fromJson constructor
Implementation
factory ApiAction.fromJson(Map<String, dynamic> json) => ApiAction(
type: ActionType.values.firstWhere(
(ActionType e) => e.name == json["type"],
orElse: () => ActionType.showToast,
),
parameters: json["parameters"],
);