WMTUserOperation class

UserOperation is object returned from the backend that can be either approved or rejected. It is usually visually presented to the user as a non-editable form with information about the real-world operation (for example login or payment).

Inheritance

Constructors

WMTUserOperation({required String id, required String data, required WMTUserOperationStatus status, required String name, required DateTime operationCreated, required DateTime operationExpires, required WMTOperationFormData formData, required WMTAllowedOperationSignature allowedSignatureType, WMTUserOperationUIData? ui, String? statusReason})
WMTUserOperation.fromJson(Map<String, dynamic> json)
factory

Properties

allowedSignatureType → WMTAllowedOperationSignature
Allowed signature types.
final
data → String
Actual data that will be signed.
final
formData → WMTOperationFormData
Data that should be presented to the user.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier of the operation.
final
mobileTokenData ↔ Object?
Additional mobile token data for authorization (available with PowerAuth server 1.10+)
getter/setter pairoverride
name → String
System name of the operation (for example login).
final
operationCreated → DateTime
Date and time when the operation was created.
final
operationExpires → DateTime
Date and time when the operation will expire.
final
proximityCheck ↔ WMTOperationProximityCheck?
Proximity Check Data to be passed when OTP is handed to the app.
getter/setter pairoverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → WMTUserOperationStatus
Processing status of the operation.
final
statusReason → String?
Enum-like reason why the status has changed.
final
ui → WMTUserOperationUIData?
UI data to be shown.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited