How to convert this ionic 3 to ionic 5

showTrips() {
let tripAlert = this.alertCtrl.create();
tripAlert.setTitle(‘Trips’);
for (const trip of this.trips) {
tripAlert.addInput({
type: ‘radio’,
label: trip,
value: trip
});
}
tripAlert.addButton(‘Cancel’);
tripAlert.addButton({
text: ‘Ok’,
handler: trip => {
this.drawTrip(trip);
return true;
}
});
tripAlert.present();
}

The Title doesn’t really match to your Code. You should describe your Problem. There are many Migration Tutorials from Ionic online.