AddItemRequest constructor

AddItemRequest({
  1. String? restaurantId,
  2. String? name,
  3. String? onSubCategoryId,
  4. String? userId,
})

Implementation

factory AddItemRequest({
  $core.String? restaurantId,
  $core.String? name,
  $core.String? onSubCategoryId,
  $core.String? userId,
}) {
  final $result = create();
  if (restaurantId != null) {
    $result.restaurantId = restaurantId;
  }
  if (name != null) {
    $result.name = name;
  }
  if (onSubCategoryId != null) {
    $result.onSubCategoryId = onSubCategoryId;
  }
  if (userId != null) {
    $result.userId = userId;
  }
  return $result;
}