fromJson static method

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

Implementation

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