encode<V> static method

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

Implementation

static V encode<V>(
  FundingInstructionsBankTransferSortCodeRecord instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'account_holder_name',
    instance.accountHolderName,
  );
  container.encodeString(
    'account_number',
    instance.accountNumber,
  );
  container.encodeString(
    'sort_code',
    instance.sortCode,
  );
  return container.value;
}