encode<V> static method

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

Implementation

static V encode<V>(
  PaymentLinkCreatedEvent instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  PaymentLink.encode(
    instance.object,
    container.nestedSingleValueContainer('object').encoder,
  );
  container.encodeString(
    'type',
    'payment_link.created',
  );
  return container.value;
}