encode<V> static method
Implementation
static V encode<V>(
IssuingAuthorizationPendingRequest instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeInt(
'amount',
instance.amount,
);
if (instance.amountDetails != null) {
IssuingAuthorizationAmountDetails.encode(
instance.amountDetails!,
container.nestedSingleValueContainer('amount_details').encoder,
);
}
container.encodeString(
'currency',
instance.currency,
);
container.encodeBool(
'is_amount_controllable',
instance.isAmountControllable,
);
container.encodeInt(
'merchant_amount',
instance.merchantAmount,
);
container.encodeString(
'merchant_currency',
instance.merchantCurrency,
);
if (instance.networkRiskScore != null) {
container.encodeInt(
'network_risk_score',
instance.networkRiskScore!,
);
}
return container.value;
}