encode<V> static method

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

Implementation

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