encode<V> static method
Implementation
static V encode<V>(
PaymentLinksResourceCustomText instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.afterSubmit != null) {
PaymentLinksResourceCustomTextAfterSubmit.encode(
instance.afterSubmit!,
container.nestedSingleValueContainer('after_submit').encoder,
);
}
if (instance.shippingAddress != null) {
PaymentLinksResourceCustomTextAfterSubmit.encode(
instance.shippingAddress!,
container.nestedSingleValueContainer('shipping_address').encoder,
);
}
if (instance.submit != null) {
PaymentLinksResourceCustomTextAfterSubmit.encode(
instance.submit!,
container.nestedSingleValueContainer('submit').encoder,
);
}
if (instance.termsOfServiceAcceptance != null) {
PaymentLinksResourceCustomTextAfterSubmit.encode(
instance.termsOfServiceAcceptance!,
container
.nestedSingleValueContainer('terms_of_service_acceptance')
.encoder,
);
}
return container.value;
}