SearchAgent constructor

SearchAgent({
  1. RowVersion? rowVersion,
  2. SearchAgentId? id,
  3. Timestamp? createdTime,
  4. Timestamp? updatedTime,
  5. StoredImage? thumbnail,
  6. StringValue? displayName,
  7. SearchQuery? query,
})

Implementation

factory SearchAgent({
  $2.RowVersion? rowVersion,
  $0.SearchAgentId? id,
  $4.Timestamp? createdTime,
  $4.Timestamp? updatedTime,
  $1.StoredImage? thumbnail,
  $3.StringValue? displayName,
  SearchQuery? query,
}) {
  final result = create();
  if (rowVersion != null) result.rowVersion = rowVersion;
  if (id != null) result.id = id;
  if (createdTime != null) result.createdTime = createdTime;
  if (updatedTime != null) result.updatedTime = updatedTime;
  if (thumbnail != null) result.thumbnail = thumbnail;
  if (displayName != null) result.displayName = displayName;
  if (query != null) result.query = query;
  return result;
}