AsyncOperation constructor

AsyncOperation({
  1. RowVersion? rowVersion,
  2. AsyncOperationId? id,
  3. Timestamp? created,
  4. Timestamp? scheduledStart,
  5. Timestamp? lastChange,
  6. Timestamp? timeout,
  7. AsyncOperation_AsyncStatus? status,
  8. UserId? createdBy,
  9. Any? parameters,
  10. TraceIdentifier? traceId,
  11. int? partitionCount,
  12. int? itemCount,
  13. AsyncOperationResult? result,
  14. StringValue? displayName,
})

Implementation

factory AsyncOperation({
  $0.RowVersion? rowVersion,
  $1.AsyncOperationId? id,
  $2.Timestamp? created,
  $2.Timestamp? scheduledStart,
  $2.Timestamp? lastChange,
  $2.Timestamp? timeout,
  AsyncOperation_AsyncStatus? status,
  $1.UserId? createdBy,
  $3.Any? parameters,
  $1.TraceIdentifier? traceId,
  $core.int? partitionCount,
  $core.int? itemCount,
  AsyncOperationResult? result,
  $4.StringValue? displayName,
}) {
  final result$ = create();
  if (rowVersion != null) result$.rowVersion = rowVersion;
  if (id != null) result$.id = id;
  if (created != null) result$.created = created;
  if (scheduledStart != null) result$.scheduledStart = scheduledStart;
  if (lastChange != null) result$.lastChange = lastChange;
  if (timeout != null) result$.timeout = timeout;
  if (status != null) result$.status = status;
  if (createdBy != null) result$.createdBy = createdBy;
  if (parameters != null) result$.parameters = parameters;
  if (traceId != null) result$.traceId = traceId;
  if (partitionCount != null) result$.partitionCount = partitionCount;
  if (itemCount != null) result$.itemCount = itemCount;
  if (result != null) result$.result = result;
  if (displayName != null) result$.displayName = displayName;
  return result$;
}