encode<V> static method

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

Implementation

static V encode<V>(
  DisputeDuplicate instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.additionalDocumentation != null) {
    container.encodeString(
      'additional_documentation',
      instance.additionalDocumentation!,
    );
  }
  if (instance.cardStatement != null) {
    container.encodeString(
      'card_statement',
      instance.cardStatement!,
    );
  }
  if (instance.cashReceipt != null) {
    container.encodeString(
      'cash_receipt',
      instance.cashReceipt!,
    );
  }
  if (instance.checkImage != null) {
    container.encodeString(
      'check_image',
      instance.checkImage!,
    );
  }
  if (instance.explanation != null) {
    container.encodeString(
      'explanation',
      instance.explanation!,
    );
  }
  if (instance.originalTransaction != null) {
    container.encodeString(
      'original_transaction',
      instance.originalTransaction!,
    );
  }
  return container.value;
}