encode<V> static method

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

Implementation

static V encode<V>(
  PaymentLinkSubscriptionDataTrialSettings instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  SubscriptionsTrialsResourceEndBehavior.encode(
    instance.endBehavior,
    container.nestedSingleValueContainer('end_behavior').encoder,
  );
  return container.value;
}