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