fromJson static method

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

Implementation

static VariablesAction fromJson(Map<String, dynamic> json) {
  if (json['type'] == 'assign_variable') {
    return AssignVariableAction.fromJson(json);
  }
  throw Exception(
      'VariablesAction, Unknown action type, type: ${json['type']}');
}