encode<V> static method
Implementation
static V encode<V>(
PaymentIntentThreeDSecure instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.aresTransStatus != null) {
container.encodeString(
'ares_trans_status',
instance.aresTransStatus!,
);
}
container.encodeString(
'cryptogram',
instance.cryptogram,
);
if (instance.electronicCommerceIndicator != null) {
container.encodeString(
'electronic_commerce_indicator',
instance.electronicCommerceIndicator!,
);
}
if (instance.exemptionIndicator != null) {
container.encodeString(
'exemption_indicator',
instance.exemptionIndicator!,
);
}
if (instance.networkOptions != null) {
PaymentIntentNetworkOptions.encode(
instance.networkOptions!,
container.nestedSingleValueContainer('network_options').encoder,
);
}
if (instance.requestorChallengeIndicator != null) {
container.encodeString(
'requestor_challenge_indicator',
instance.requestorChallengeIndicator!,
);
}
container.encodeString(
'transaction_id',
instance.transactionId,
);
container.encodeString(
'version',
instance.version,
);
return container.value;
}