public static glTF_VCAST_vci_Lightmap glTF_VCAST_vci_lightmap_Deserializevci_lightmap(JsonNode parsed) { var value = new glTF_VCAST_vci_Lightmap(); foreach (var kv in parsed.ObjectItems()) { var key = kv.Key.GetString(); if (key == "texture") { value.texture = glTF_VCAST_vci_lightmap_Deserializevci_lightmap_texture(kv.Value); continue; } if (key == "offset") { value.offset = glTF_VCAST_vci_lightmap_Deserializevci_lightmap_offset(kv.Value); continue; } if (key == "scale") { value.scale = glTF_VCAST_vci_lightmap_Deserializevci_lightmap_scale(kv.Value); continue; } } return(value); }
public static void Serialize_vci_lightmap(JsonFormatter f, glTF_VCAST_vci_Lightmap value) { f.BeginMap(); if (value.texture != null) { f.Key("texture"); Serialize_vci_lightmap_texture(f, value.texture); } if (value.offset != null && value.offset.Length >= 0) { f.Key("offset"); Serialize_vci_lightmap_offset(f, value.offset); } if (value.scale != null && value.scale.Length >= 0) { f.Key("scale"); Serialize_vci_lightmap_scale(f, value.scale); } f.EndMap(); }