encode<V> static method

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

Implementation

static V encode<V>(
  IssuingPhysicalBundleFeatures instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'card_logo',
    instance.cardLogo,
  );
  IssuingPhysicalBundleFeaturesCardLogo.encode(
    instance.carrierText,
    container.nestedSingleValueContainer('carrier_text').encoder,
  );
  IssuingPhysicalBundleFeaturesCardLogo.encode(
    instance.secondLine,
    container.nestedSingleValueContainer('second_line').encoder,
  );
  return container.value;
}