TransitObject class
Constructors
-
TransitObject({ActivationStatus? activationStatus, AppLinkData? appLinkData, Barcode? barcode, String? classId, TransitClass? classReference, String? concessionCategory, LocalizedString? customConcessionCategory, LocalizedString? customTicketStatus, DeviceContext? deviceContext, bool? disableExpirationNotification, GroupingInfo? groupingInfo, bool? hasLinkedDevice, bool? hasUsers, Image? heroImage, String? hexBackgroundColor, String? id, List<
ImageModuleData> ? imageModulesData, InfoModuleData? infoModuleData, LinksModuleData? linksModuleData, List<LatLongPoint> ? locations, List<Message> ? messages, PassConstraints? passConstraints, String? passengerNames, String? passengerType, PurchaseDetails? purchaseDetails, RotatingBarcode? rotatingBarcode, String? smartTapRedemptionValue, String? state, List<TextModuleData> ? textModulesData, TicketLeg? ticketLeg, List<TicketLeg> ? ticketLegs, String? ticketNumber, TicketRestrictions? ticketRestrictions, String? ticketStatus, String? tripId, String? tripType, TimeInterval? validTimeInterval, String? version}) - TransitObject.fromJson(Map json_)
Properties
- activationStatus ↔ ActivationStatus?
-
The activation status for the object.
getter/setter pair
- appLinkData ↔ AppLinkData?
-
Optional information about the partner app link.
getter/setter pair
- barcode ↔ Barcode?
-
The barcode type and value.
getter/setter pair
- classId ↔ String?
-
The class associated with this object.
getter/setter pair
- classReference ↔ TransitClass?
-
A copy of the inherited fields of the parent class.
getter/setter pair
- concessionCategory ↔ String?
-
The concession category for the ticket.
Possible string values are:
getter/setter pair
- customConcessionCategory ↔ LocalizedString?
-
A custom concession category to use when
concessionCategory
does not provide the right option.getter/setter pair - customTicketStatus ↔ LocalizedString?
-
A custom status to use for the ticket status value when
ticketStatus
does not provide the right option.getter/setter pair - deviceContext ↔ DeviceContext?
-
Device context associated with the object.
getter/setter pair
- disableExpirationNotification ↔ bool?
-
Indicates if notifications should explicitly be suppressed.
getter/setter pair
- groupingInfo ↔ GroupingInfo?
-
Information that controls how passes are grouped together.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasLinkedDevice ↔ bool?
-
Whether this object is currently linked to a single device.
getter/setter pair
- hasUsers ↔ bool?
-
Indicates if the object has users.
getter/setter pair
- heroImage ↔ Image?
-
Optional banner image displayed on the front of the card.
getter/setter pair
- hexBackgroundColor ↔ String?
-
The background color for the card.
getter/setter pair
- id ↔ String?
-
The unique identifier for an object.
getter/setter pair
-
imageModulesData
↔ List<
ImageModuleData> ? -
Image module data.
getter/setter pair
- infoModuleData ↔ InfoModuleData?
-
Use textModulesData instead.
getter/setter pair
- linksModuleData ↔ LinksModuleData?
-
Links module data.
getter/setter pair
-
locations
↔ List<
LatLongPoint> ? -
Note: This field is currently not supported to trigger geo notifications.
getter/setter pair
-
messages
↔ List<
Message> ? -
An array of messages displayed in the app.
getter/setter pair
- passConstraints ↔ PassConstraints?
-
Pass constraints for the object.
getter/setter pair
- passengerNames ↔ String?
-
The name(s) of the passengers the ticket is assigned to.
getter/setter pair
- passengerType ↔ String?
-
The number of passengers.
Possible string values are:
getter/setter pair
- purchaseDetails ↔ PurchaseDetails?
-
Purchase details for this ticket.
getter/setter pair
- rotatingBarcode ↔ RotatingBarcode?
-
The rotating barcode type and value.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smartTapRedemptionValue ↔ String?
-
The value that will be transmitted to a Smart Tap certified terminal over
NFC for this object.
getter/setter pair
- state ↔ String?
-
The state of the object.
getter/setter pair
-
textModulesData
↔ List<
TextModuleData> ? -
Text module data.
getter/setter pair
- ticketLeg ↔ TicketLeg?
-
A single ticket leg contains departure and arrival information along with
boarding and seating information.
getter/setter pair
-
ticketLegs
↔ List<
TicketLeg> ? -
Each ticket may contain one or more legs.
getter/setter pair
- ticketNumber ↔ String?
-
The number of the ticket.
getter/setter pair
- ticketRestrictions ↔ TicketRestrictions?
-
Information about what kind of restrictions there are on using this
ticket.
getter/setter pair
- ticketStatus ↔ String?
-
The status of the ticket.
getter/setter pair
- tripId ↔ String?
-
This id is used to group tickets together if the user has saved multiple
tickets for the same trip.
getter/setter pair
- tripType ↔ String?
-
The type of trip this transit object represents.
getter/setter pair
- validTimeInterval ↔ TimeInterval?
-
The time period this object will be
active
and object can be used.getter/setter pair - version ↔ String?
-
Deprecated
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited