encode<V> static method

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

Implementation

static V encode<V>(
  TaxDeductedAtSource instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeString(
    'object',
    'tax_deducted_at_source',
  );
  container.encodeDateTime(
    'period_end',
    instance.periodEnd,
  );
  container.encodeDateTime(
    'period_start',
    instance.periodStart,
  );
  container.encodeString(
    'tax_deduction_account_number',
    instance.taxDeductionAccountNumber,
  );
  return container.value;
}