WriteResponse constructor

WriteResponse({
  1. String? streamId,
  2. List<int>? streamToken,
  3. Iterable<WriteResult>? writeResults,
  4. Timestamp? commitTime,
})

Implementation

factory WriteResponse({
  $core.String? streamId,
  $core.List<$core.int>? streamToken,
  $core.Iterable<$5.WriteResult>? writeResults,
  $4.Timestamp? commitTime,
}) {
  final $result = create();
  if (streamId != null) {
    $result.streamId = streamId;
  }
  if (streamToken != null) {
    $result.streamToken = streamToken;
  }
  if (writeResults != null) {
    $result.writeResults.addAll(writeResults);
  }
  if (commitTime != null) {
    $result.commitTime = commitTime;
  }
  return $result;
}