passengerText static method

String passengerText(
  1. String? type
)

Implementation

static String passengerText(String? type) {
  switch (type) {
    case "ADULT":
      return "Adult";
    case "CHILD":
      return "Child";
    case "INFANT":
      return "Infant (lap)";
    case "INFANTWITHSEAT":
      return "Infant (Seat)";
    default:
      return "";
  }
}