encode<V> static method

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

Implementation

static V encode<V>(
  EmailSent instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'email_sent_at',
    instance.emailSentAt,
  );
  container.encodeString(
    'email_sent_to',
    instance.emailSentTo,
  );
  return container.value;
}