encode<V> static method

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

Implementation

static V encode<V>(
  PaymentLinkCreateOptionsRestrictions instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  PaymentLinkCompletedSessions.encode(
    instance.completedSessions,
    container.nestedSingleValueContainer('completed_sessions').encoder,
  );
  return container.value;
}