You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
366 B
22 lines
366 B
/* |
|
* Copyright (C) 2023 Riyyi |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#include "ruc/json/json.h" |
|
|
|
#include "inferno/component/tagcomponent.h" |
|
|
|
namespace Inferno { |
|
|
|
void fromJson(const ruc::Json& json, TagComponent& value) |
|
{ |
|
VERIFY(json.type() == ruc::Json::Type::Object); |
|
|
|
if (json.exists("tag")) { |
|
json.at("tag").getTo(value.tag); |
|
} |
|
} |
|
|
|
} // namespace Inferno
|
|
|