encode<V> static method

V encode<V>(
  1. IssuingPersonalizationDesignCarrierText instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  IssuingPersonalizationDesignCarrierText 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;
}