Encode structural FPS information to a QR code string or Decode a QR code String to structural FPS information based on the specification.
final qrString = HKQrInfo( isDynamic: true, fpsProxy: FpsProxy(FpsType.fpsId, '123456'), amount: '0.01', ).encode();
final hkqrInfo = HKQrInfo.decode('000201010211...');
- Fail-fast: Decode will fail when first error was found.
- Warnings: Decode may success with some warnings, i.e. some unrecognized field found during decode.
- Mandatory: Mandatory fields must present even if not used in FPS.
- Optional: Optional fields must have valid format and length if present.
There are 3 use cases in example