encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDetailsCardThreeDSecure instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.authenticationFlow != null) {
container.encodeString(
'authentication_flow',
instance.authenticationFlow!,
);
}
if (instance.electronicCommerceIndicator != null) {
container.encodeString(
'electronic_commerce_indicator',
instance.electronicCommerceIndicator!,
);
}
if (instance.exemptionIndicator != null) {
container.encodeString(
'exemption_indicator',
instance.exemptionIndicator!,
);
}
if (instance.exemptionIndicatorApplied != null) {
container.encodeBool(
'exemption_indicator_applied',
instance.exemptionIndicatorApplied!,
);
}
if (instance.result != null) {
container.encodeString(
'result',
instance.result!,
);
}
if (instance.resultReason != null) {
container.encodeString(
'result_reason',
instance.resultReason!,
);
}
if (instance.transactionId != null) {
container.encodeString(
'transaction_id',
instance.transactionId!,
);
}
if (instance.version != null) {
container.encodeString(
'version',
instance.version!,
);
}
return container.value;
}