public async Task GetVehicles()
{
HttpClient client = new HttpClient();
var result = await client.GetStreamAsync(URL);
var vehicles = JsonConvert.DeserializeObject<VehicleJson[]>(result.ToString());
foreach (var vehicle in vehicles)
{
this.Vehicles.Add(new Vehicle
{
Name = vehicle.nome,
Price = vehicle.preco
});
}
}