PayrollGroupsServiceItemCreateRequest constructor

PayrollGroupsServiceItemCreateRequest({
  1. String? userComment,
  2. Int64? payrollGroupId,
  3. Int64? payrollParamId,
  4. PAYROLL_GROUP_ITEM_VALUE_TYPE? valueType,
  5. Int64? basePayAddition,
  6. Int64? divisor,
  7. Int64? minAmount,
  8. Int64? maxAmount,
  9. Int64? amountPercentageOnWhichTaxApplicable,
  10. String? description,
})

Implementation

factory PayrollGroupsServiceItemCreateRequest({
  $core.String? userComment,
  $fixnum.Int64? payrollGroupId,
  $fixnum.Int64? payrollParamId,
  PAYROLL_GROUP_ITEM_VALUE_TYPE? valueType,
  $fixnum.Int64? basePayAddition,
  $fixnum.Int64? divisor,
  $fixnum.Int64? minAmount,
  $fixnum.Int64? maxAmount,
  $fixnum.Int64? amountPercentageOnWhichTaxApplicable,
  $core.String? description,
}) {
  final result = create();
  if (userComment != null) result.userComment = userComment;
  if (payrollGroupId != null) result.payrollGroupId = payrollGroupId;
  if (payrollParamId != null) result.payrollParamId = payrollParamId;
  if (valueType != null) result.valueType = valueType;
  if (basePayAddition != null) result.basePayAddition = basePayAddition;
  if (divisor != null) result.divisor = divisor;
  if (minAmount != null) result.minAmount = minAmount;
  if (maxAmount != null) result.maxAmount = maxAmount;
  if (amountPercentageOnWhichTaxApplicable != null)
    result.amountPercentageOnWhichTaxApplicable =
        amountPercentageOnWhichTaxApplicable;
  if (description != null) result.description = description;
  return result;
}