fromJson static method

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

Implementation

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