factory TaskApi.fromJson(Map<String, dynamic> jsonMap) { final model = TaskApi(jsonMap["method"], jsonMap["params"]); return model; }