public static glTF_VCAST_vci_LocationLighting glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting(JsonNode parsed) { var value = new glTF_VCAST_vci_LocationLighting(); foreach (var kv in parsed.ObjectItems()) { var key = kv.Key.GetString(); if (key == "lightmapDirectionalMode") { value.lightmapDirectionalMode = kv.Value.GetString(); continue; } if (key == "lightmapCompressionMode") { value.lightmapCompressionMode = kv.Value.GetString(); continue; } if (key == "lightmapTextures") { value.lightmapTextures = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_lightmapTextures(kv.Value); continue; } if (key == "skyboxCubemap") { value.skyboxCubemap = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap(kv.Value); continue; } if (key == "lightProbes") { value.lightProbes = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_lightProbes(kv.Value); continue; } } return(value); }
public static void Serialize_vci_locationLighting(JsonFormatter f, glTF_VCAST_vci_LocationLighting value) { f.BeginMap(); if (!string.IsNullOrEmpty(value.lightmapDirectionalMode)) { f.Key("lightmapDirectionalMode"); f.Value(value.lightmapDirectionalMode); } if (!string.IsNullOrEmpty(value.lightmapCompressionMode)) { f.Key("lightmapCompressionMode"); f.Value(value.lightmapCompressionMode); } if (value.lightmapTextures != null && value.lightmapTextures.Length >= 0) { f.Key("lightmapTextures"); Serialize_vci_locationLighting_lightmapTextures(f, value.lightmapTextures); } if (value.skyboxCubemap != null) { f.Key("skyboxCubemap"); Serialize_vci_locationLighting_skyboxCubemap(f, value.skyboxCubemap); } if (value.lightProbes != null && value.lightProbes.Length >= 0) { f.Key("lightProbes"); Serialize_vci_locationLighting_lightProbes(f, value.lightProbes); } f.EndMap(); }