MerchantArgsController class
Controller for building and normalizing merchantArgs passed to paysheet and native pay.
Use this to construct merchant argument maps for payment flows. Supports merging and normalization.
Constructors
-
MerchantArgsController({String? merchantId, String? merchantName, String? merchantInfo, String? gatewayMerchantId, List<
SummaryLineItem> ? summaryItems}) -
Creates a controller from individual merchant fields.
factory
-
MerchantArgsController.fromMap(Map<
String, dynamic> ? map) -
Creates a controller from an existing map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
merge(
Map< String, dynamic> ? other) → void -
Merge other values into this controller. Values in
otheroverwrite existing ones. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> ? - Returns the normalized map or null if empty.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited