GenericObject class

Generic Object

Constructors

GenericObject({AppLinkData? appLinkData, Barcode? barcode, LocalizedString? cardTitle, String? classId, String? genericType, GroupingInfo? groupingInfo, bool? hasUsers, LocalizedString? header, Image? heroImage, String? hexBackgroundColor, String? id, List<ImageModuleData>? imageModulesData, List<String>? linkedObjectIds, LinksModuleData? linksModuleData, List<MerchantLocation>? merchantLocations, List<Message>? messages, Notifications? notifications, PassConstraints? passConstraints, RotatingBarcode? rotatingBarcode, SaveRestrictions? saveRestrictions, String? smartTapRedemptionValue, String? state, LocalizedString? subheader, List<TextModuleData>? textModulesData, TimeInterval? validTimeInterval, List<ValueAddedModuleData>? valueAddedModuleData, })
GenericObject.fromJson(Map json_)

Properties

appLinkData ↔ AppLinkData?
Optional app or website link that will be displayed as a button on the front of the pass.
getter/setter pair
barcode ↔ Barcode?
The barcode type and value.
getter/setter pair
cardTitle ↔ LocalizedString?
The header of the pass.
getter/setter pair
classId ↔ String?
The class associated with this object.
getter/setter pair
genericType ↔ String?
Specify which GenericType the card belongs to. Possible string values are:
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
hasUsers ↔ bool?
Indicates if the object has users.
getter/setter pair
The title of the pass, such as "50% off coupon" or "Library card" or "Voucher".
getter/setter pair
heroImage ↔ Image?
Banner image displayed on the front of the card if present.
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
linkedObjectIds ↔ List<String>?
linked_object_ids are a list of other objects such as event ticket, loyalty, offer, generic, giftcard, transit and boarding pass that should be automatically attached to this generic object.
getter/setter pair
linksModuleData ↔ LinksModuleData?
Links module data.
getter/setter pair
The logo image of the pass.
getter/setter pair
merchantLocations ↔ List<MerchantLocation>?
Merchant locations.
getter/setter pair
messages ↔ List<Message>?
An array of messages displayed in the app.
getter/setter pair
notifications ↔ Notifications?
The notification settings that are enabled for this object.
getter/setter pair
passConstraints ↔ PassConstraints?
Pass constraints for the object.
getter/setter pair
rotatingBarcode ↔ RotatingBarcode?
The rotating barcode settings/details.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
saveRestrictions ↔ SaveRestrictions?
Restrictions on the object that needs to be verified before the user tries to save the pass.
getter/setter pair
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
subheader ↔ LocalizedString?
The title label of the pass, such as location where this pass can be used.
getter/setter pair
textModulesData ↔ List<TextModuleData>?
Text module data.
getter/setter pair
validTimeInterval ↔ TimeInterval?
The time period this object will be considered valid or usable.
getter/setter pair
valueAddedModuleData ↔ List<ValueAddedModuleData>?
Optional value added module data.
getter/setter pair
The wide logo of the pass.
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