encode<V> static method

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

Implementation

static V encode<V>(
  IssuingCardShippingCustoms instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.eoriNumber != null) {
    container.encodeString(
      'eori_number',
      instance.eoriNumber!,
    );
  }
  return container.value;
}