encode<V> static method

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

Implementation

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