public VehicleRootModel VehicleDeserializer <T>(string xml) { XmlSerializer deserializer = new XmlSerializer(typeof(VehicleRootModel)); TextReader textReader = new StringReader(xml); xmlVehicleResponse = (VehicleRootModel)deserializer.Deserialize(textReader); return(xmlVehicleResponse); }
public XMLSerializerManager() { xmlTrailerResponse = new RootModel(); xmlVehicleResponse = new VehicleRootModel(); }