encode<V> static method
Implementation
static V encode<V>(
SessionPaypal instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.captureMethod != null) {
container.encodeString(
'capture_method',
instance.captureMethod!,
);
}
if (instance.preferredLocale != null) {
container.encodeString(
'preferred_locale',
instance.preferredLocale!,
);
}
if (instance.reference != null) {
container.encodeString(
'reference',
instance.reference!,
);
}
if (instance.riskCorrelationId != null) {
container.encodeString(
'risk_correlation_id',
instance.riskCorrelationId!,
);
}
if (instance.setupFutureUsage != null) {
container.encodeString(
'setup_future_usage',
instance.setupFutureUsage!,
);
}
return container.value;
}