encode<V> static method
Implementation
static V encode<V>(
PersonalizationDesignCarrierText instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.footerBody != null) {
container.encodeString(
'footer_body',
instance.footerBody!,
);
}
if (instance.footerTitle != null) {
container.encodeString(
'footer_title',
instance.footerTitle!,
);
}
if (instance.headerBody != null) {
container.encodeString(
'header_body',
instance.headerBody!,
);
}
if (instance.headerTitle != null) {
container.encodeString(
'header_title',
instance.headerTitle!,
);
}
return container.value;
}