TicketPayload class

the actual payload representing a ticket

Constructors

TicketPayload({required String validityAreaDescription, required DateTime? expiryDate, required AdditionalElements additionalElements, required TrafficAssociation trafficAssociation, required DateTime? subscribedSince, required String id, required String? barcode, required Customer customer, required DateTime? firstDayOfValidity, required String token, required TicketLayout layout, required String ticketColor, required Header header})
const
TicketPayload.fromBase64(String base64)
factory
TicketPayload.fromJson(Map<String, dynamic> json)
factory

Properties

additionalElements AdditionalElements
final
barcode String?
final
customer Customer
final
expiryDate DateTime?
the last day of validity of the ticket
final
firstDayOfValidity DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
final
id String
final
layout TicketLayout
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscribedSince DateTime?
time the subscription started
final
ticketColor String
final
token String
final
trafficAssociation TrafficAssociation
information about the traffic association or carrier
final
validityAreaDescription String
text describing the area of validity of the ticket
final

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