encode<V> static method

Implementation

static V encode<V>(
  CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  BalanceTransactionOrId.encode(
    instance.balanceTransaction,
    container.nestedSingleValueContainer('balance_transaction').encoder,
  );
  CustomerCashBalanceTransactionOrId.encode(
    instance.linkedTransaction,
    container.nestedSingleValueContainer('linked_transaction').encoder,
  );
  return container.value;
}