VietQRParsedData class
Represents the parsed data from a VietQR payload string.
This class contains all the information extracted from a VietQR payload, including bank details, account information, transaction amount, and message.
Constructors
- VietQRParsedData({required Bank? bank, required String bankBin, required String accountNumber, required double? amount, required String? message, required bool isDynamic, required String payloadFormat, required String pointOfInitiation, required String currency, required String countryCode, required String crc})
-
Creates a new instance of VietQRParsedData.
const
Properties
- accountNumber → String
-
The beneficiary's account number.
final
- amount → double?
-
The transaction amount in VND, null if not specified (static QR).
final
- bank → Bank?
-
The bank information if the BIN matches a known bank, null otherwise.
final
- bankBin → String
-
The Bank Identification Number (BIN) used in the QR code.
final
- bankName → String
-
Returns the bank name, either from the matched Bank enum or the BIN if unknown.
no setter
- countryCode → String
-
The country code (should be "VN" for Vietnam).
final
- crc → String
-
The CRC checksum from the original payload.
final
- currency → String
-
The transaction currency code (should be "704" for VND).
final
- formattedAmount → String
-
Returns a formatted string representation of the amount, or "Not specified" for static QR.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDynamic → bool
-
Whether this is a dynamic QR (with pre-filled amount) or static QR.
final
- message → String?
-
The transaction message/purpose, null if not specified.
final
- payloadFormat → String
-
The original payload format indicator (should be "01" for VietQR).
final
- pointOfInitiation → String
-
The point of initiation method ("11" for static, "12" for dynamic).
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
-
toMap(
) → Map< String, dynamic> - Returns a JSON-like map representation of the parsed data.
-
toString(
) → String -
Returns a summary of the parsed data.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override