encode<V> static method

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

Implementation

static V encode<V>(
  CustomerTaxLocation instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'country',
    instance.country,
  );
  container.encodeString(
    'source',
    instance.source,
  );
  if (instance.state != null) {
    container.encodeString(
      'state',
      instance.state!,
    );
  }
  return container.value;
}