1 /*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #ifndef SECURITY_GUARD_MODEL_CFG_MARSHALLING_H
17 #define SECURITY_GUARD_MODEL_CFG_MARSHALLING_H
18
19 #include <string>
20 #include <vector>
21 #include "security_event_info.h"
22 #include "nlohmann/json.hpp"
23
24 namespace OHOS::Security::SecurityGuard {
25
from_json(const nlohmann::json & jsonObj,Field & field)26 void from_json(const nlohmann::json &jsonObj, Field &field) {};
from_json(const nlohmann::json & jsonObj,Rule & rule)27 void from_json(const nlohmann::json &jsonObj, Rule &rule) {};
from_json(const nlohmann::json & jsonObj,BuildInDetectionCfg & config)28 void from_json(const nlohmann::json &jsonObj, BuildInDetectionCfg &config) {};
to_json(nlohmann::json & jsonObj,const ModelCfg & modelCfg)29 void to_json(nlohmann::json &jsonObj, const ModelCfg &modelCfg) {};
from_json(const nlohmann::json & jsonObj,ModelCfg & modelCfg)30 void from_json(const nlohmann::json &jsonObj, ModelCfg &modelCfg) {};
to_json(nlohmann::json & jsonObj,const EventCfg & eventCfg)31 void to_json(nlohmann::json &jsonObj, const EventCfg &eventCfg) {};
from_json(const nlohmann::json & jsonObj,EventCfg & eventCfg)32 void from_json(const nlohmann::json &jsonObj, EventCfg &eventCfg) {};
to_json(nlohmann::json & jsonObj,const DataMgrCfgSt & dataMgrCfg)33 void to_json(nlohmann::json &jsonObj, const DataMgrCfgSt &dataMgrCfg) {};
from_json(const nlohmann::json & jsonObj,DataMgrCfgSt & dataMgrCfg)34 void from_json(const nlohmann::json &jsonObj, DataMgrCfgSt &dataMgrCfg) {};
to_json(nlohmann::json & jsonObj,const SecEvent & eventDataSt)35 void to_json(nlohmann::json &jsonObj, const SecEvent &eventDataSt) {};
to_json(nlohmann::json & jsonObj,const EventContentSt & eventContentSt)36 void to_json(nlohmann::json &jsonObj, const EventContentSt &eventContentSt) {};
from_json(const nlohmann::json & jsonObj,EventContentSt & eventContentSt)37 void from_json(const nlohmann::json &jsonObj, EventContentSt &eventContentSt) {};
38 } // namespace OHOS::Security::SecurityGuard
39
40 #endif // SECURITY_GUARD_MODEL_CFG_MARSHALLING_H
41