encode<V> static method

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

Implementation

static V encode<V>(
  RefundNextActionDisplayDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  EmailSent.encode(
    instance.emailSent,
    container.nestedSingleValueContainer('email_sent').encoder,
  );
  container.encodeDateTime(
    'expires_at',
    instance.expiresAt,
  );
  return container.value;
}