public static void Serialize_vci_LocationBounds(JsonFormatter f, glTF_VCAST_vci_LocationBounds value) { f.BeginMap(); if (value.bounds_center != null) { f.Key("bounds_center"); Serialize_vci_LocationBounds_bounds_center(f, value.bounds_center); } if (value.bounds_size != null) { f.Key("bounds_size"); Serialize_vci_LocationBounds_bounds_size(f, value.bounds_size); } f.EndMap(); }
public static glTF_VCAST_vci_LocationBounds glTF_VCAST_vci_location_bounds_Deserializevci_LocationBounds(JsonNode parsed) { var value = new glTF_VCAST_vci_LocationBounds(); foreach (var kv in parsed.ObjectItems()) { var key = kv.Key.GetString(); if (key == "bounds_center") { value.bounds_center = glTF_VCAST_vci_location_bounds_Deserializevci_LocationBounds_bounds_center(kv.Value); continue; } if (key == "bounds_size") { value.bounds_size = glTF_VCAST_vci_location_bounds_Deserializevci_LocationBounds_bounds_size(kv.Value); continue; } } return(value); }