encode<V> static method

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

Implementation

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