Nfc class

Information about the NFC payload passed to an Apple Pay terminal.

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

Nfc({required String message, String? encryptionPublicKey, bool? requiresAuthentication})
Nfc.fromJson(Map<String, dynamic> json)
factory

Properties

encryptionPublicKey String?
Optional. The public encryption key used by the Value Added Services protocol. Use a Base64 encoded X.509 SubjectPublicKeyInfo structure containing a ECDH public key for group P256.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Required. The payload to be transmitted to the Apple Pay terminal. Must be 64 bytes or less. Messages longer than 64 bytes are truncated by the system.
final
requiresAuthentication bool?
A Boolean value that indicates whether the NFC pass requires authentication. The default value is false. A value of true requires the user to authenticate for each use of the NFC pass.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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