SavedSearch constructor

SavedSearch({
  1. SavedSearchId? id,
  2. SearchQuery? searchQuery,
  3. StringValue? displayName,
  4. Int32Value? order,
  5. StoredImage? image,
  6. bool? notifyOnNew,
  7. StringValue? title,
  8. StringValue? subtitle,
  9. StringValue? editorial,
  10. SavedSearch_SavedSearchViewType? viewType,
  11. Any? child,
})

Implementation

factory SavedSearch({
  $0.SavedSearchId? id,
  SearchQuery? searchQuery,
  $3.StringValue? displayName,
  $3.Int32Value? order,
  $1.StoredImage? image,
  $core.bool? notifyOnNew,
  $3.StringValue? title,
  $3.StringValue? subtitle,
  $3.StringValue? editorial,
  SavedSearch_SavedSearchViewType? viewType,
  $5.Any? child,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (searchQuery != null) result.searchQuery = searchQuery;
  if (displayName != null) result.displayName = displayName;
  if (order != null) result.order = order;
  if (image != null) result.image = image;
  if (notifyOnNew != null) result.notifyOnNew = notifyOnNew;
  if (title != null) result.title = title;
  if (subtitle != null) result.subtitle = subtitle;
  if (editorial != null) result.editorial = editorial;
  if (viewType != null) result.viewType = viewType;
  if (child != null) result.child = child;
  return result;
}