encode<V> static method

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

Implementation

static V encode<V>(
  AccountPayments instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.statementDescriptor != null) {
    container.encodeString(
      'statement_descriptor',
      instance.statementDescriptor!,
    );
  }
  if (instance.statementDescriptorKana != null) {
    container.encodeString(
      'statement_descriptor_kana',
      instance.statementDescriptorKana!,
    );
  }
  if (instance.statementDescriptorKanji != null) {
    container.encodeString(
      'statement_descriptor_kanji',
      instance.statementDescriptorKanji!,
    );
  }
  return container.value;
}