encode<V> static method

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

Implementation

static V encode<V>(
  BankConnectionsResourceTransactionResourceStatusTransitions instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.postedAt != null) {
    container.encodeDateTime(
      'posted_at',
      instance.postedAt!,
    );
  }
  if (instance.voidAt != null) {
    container.encodeDateTime(
      'void_at',
      instance.voidAt!,
    );
  }
  return container.value;
}