encode<V> static method

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

Implementation

static V encode<V>(
  IssuingPersonalizationDesignRejectionReasons instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.cardLogo != null) {
    container.encodeList(
      'card_logo',
      (container) =>
          instance.cardLogo!.forEach((el) => container.encodeString(el)),
    );
  }
  if (instance.carrierText != null) {
    container.encodeList(
      'carrier_text',
      (container) =>
          instance.carrierText!.forEach((el) => container.encodeString(el)),
    );
  }
  return container.value;
}