fromJson static method

APIRequestAction fromJson(
  1. Map<String, dynamic> json,
  2. ActionMapper mapper
)
override

Implementation

static APIRequestAction fromJson(
    Map<String, dynamic> json, ActionMapper mapper) {
  if (json['type'] == 'execute') {
    return ExecuteAPIRequestAction.fromJson(json, mapper);
  }
  throw Exception('Unknown action type');
}