45void adl_serializer<wmtk::components::input::InputOptions>::from_json(
const json& j,
Type& v)
48 v.
file = j.get<std::filesystem::path>();
51 v.
file = j[
"file"].get<std::filesystem::path>();
52 if (j.contains(
"name_spec")) {
55 if (j.contains(
"name_spec_file")) {
56 v.
name_spec_file = j[
"name_spec_file"].get<std::filesystem::path>();
61 if (j.contains(
"old_mode")) {
64 v.
old_mode = j.contains(
"ignore_z") || j.contains(
"tetrahedron_attributes");
67 "Input component is using old mode because ignore_z exists ({}) or "
68 "tetrahedron_attributes exists ({})",
69 j.contains(
"ignore_z"),
70 j.contains(
"tetrahedron_attributes"));
80 if (j.contains(
"tetrahedron_attributes")) {
85 j[
"tetrahedron_attributes"].get<std::vector<std::string>>()};
90 j[
"imported_attributes"].get<std::vector<std::vector<std::string>>>();