encode<V> static method
Implementation
static V encode<V>(
PaymentMethodCardChecks instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.addressLine1Check != null) {
container.encodeString(
'address_line1_check',
instance.addressLine1Check!,
);
}
if (instance.addressPostalCodeCheck != null) {
container.encodeString(
'address_postal_code_check',
instance.addressPostalCodeCheck!,
);
}
if (instance.cvcCheck != null) {
container.encodeString(
'cvc_check',
instance.cvcCheck!,
);
}
return container.value;
}