GoalsServiceItemCreateRequest constructor

GoalsServiceItemCreateRequest({
  1. String? userComment,
  2. Int64? goalId,
  3. String? name,
  4. Int64? labelId,
  5. String? specifications,
  6. GOAL_ITEM_INPUT_VALUE_TYPE? inputValueType,
  7. Int64? numberMinValue,
  8. Int64? numberMaxValue,
  9. Int64? numberAcceptableValue,
  10. Iterable<String>? textValues,
  11. String? textAcceptableValue,
})

Implementation

factory GoalsServiceItemCreateRequest({
  $core.String? userComment,
  $fixnum.Int64? goalId,
  $core.String? name,
  $fixnum.Int64? labelId,
  $core.String? specifications,
  GOAL_ITEM_INPUT_VALUE_TYPE? inputValueType,
  $fixnum.Int64? numberMinValue,
  $fixnum.Int64? numberMaxValue,
  $fixnum.Int64? numberAcceptableValue,
  $core.Iterable<$core.String>? textValues,
  $core.String? textAcceptableValue,
}) {
  final result = create();
  if (userComment != null) result.userComment = userComment;
  if (goalId != null) result.goalId = goalId;
  if (name != null) result.name = name;
  if (labelId != null) result.labelId = labelId;
  if (specifications != null) result.specifications = specifications;
  if (inputValueType != null) result.inputValueType = inputValueType;
  if (numberMinValue != null) result.numberMinValue = numberMinValue;
  if (numberMaxValue != null) result.numberMaxValue = numberMaxValue;
  if (numberAcceptableValue != null)
    result.numberAcceptableValue = numberAcceptableValue;
  if (textValues != null) result.textValues.addAll(textValues);
  if (textAcceptableValue != null)
    result.textAcceptableValue = textAcceptableValue;
  return result;
}