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