encode<V> static method

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

Implementation

static V encode<V>(
  SourceTransactionPaperCheckData instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.availableAt != null) {
    container.encodeString(
      'available_at',
      instance.availableAt!,
    );
  }
  if (instance.invoices != null) {
    container.encodeString(
      'invoices',
      instance.invoices!,
    );
  }
  return container.value;
}