encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentKlarna instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.dob != null) {
    AccountDob.encode(
      instance.dob!,
      container.nestedSingleValueContainer('dob').encoder,
    );
  }
  return container.value;
}