encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentProcessingCustomerNotification instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.approvalRequested != null) {
    container.encodeBool(
      'approval_requested',
      instance.approvalRequested!,
    );
  }
  if (instance.completesAt != null) {
    container.encodeDateTime(
      'completes_at',
      instance.completesAt!,
    );
  }
  return container.value;
}