encode<V> static method

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

Implementation

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