IndexOperationMetadata constructor

IndexOperationMetadata({
  1. Timestamp? startTime,
  2. Timestamp? endTime,
  3. String? index,
  4. OperationState? state,
  5. Progress? progressDocuments,
  6. Progress? progressBytes,
})

Implementation

factory IndexOperationMetadata({
  $4.Timestamp? startTime,
  $4.Timestamp? endTime,
  $core.String? index,
  OperationState? state,
  Progress? progressDocuments,
  Progress? progressBytes,
}) {
  final _result = create();
  if (startTime != null) {
    _result.startTime = startTime;
  }
  if (endTime != null) {
    _result.endTime = endTime;
  }
  if (index != null) {
    _result.index = index;
  }
  if (state != null) {
    _result.state = state;
  }
  if (progressDocuments != null) {
    _result.progressDocuments = progressDocuments;
  }
  if (progressBytes != null) {
    _result.progressBytes = progressBytes;
  }
  return _result;
}