FlightDesignator

public struct FlightDesignator : CustomStringConvertible, Codable

A flight designator composed of a string with letters identifying the carrier and numbers identifying the flight - e.g. AB 1234

  • The flight designator code

    Declaration

    Swift

    public let code: String
  • Initializes the flight designator

    Declaration

    Swift

    public init(code: String)
  • String description of the flight designator

    Declaration

    Swift

    public var description: String { get }
  • Custom encoding to not display the property value in the json

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws