Write constructor

Write({
  1. Document? update,
  2. String? delete,
  3. DocumentMask? updateMask,
  4. Precondition? currentDocument,
  5. DocumentTransform? transform,
  6. Iterable<DocumentTransform_FieldTransform>? updateTransforms,
})

Implementation

factory Write({
  $0.Document? update,
  $core.String? delete,
  $1.DocumentMask? updateMask,
  $1.Precondition? currentDocument,
  DocumentTransform? transform,
  $core.Iterable<DocumentTransform_FieldTransform>? updateTransforms,
}) {
  final $result = create();
  if (update != null) {
    $result.update = update;
  }
  if (delete != null) {
    $result.delete = delete;
  }
  if (updateMask != null) {
    $result.updateMask = updateMask;
  }
  if (currentDocument != null) {
    $result.currentDocument = currentDocument;
  }
  if (transform != null) {
    $result.transform = transform;
  }
  if (updateTransforms != null) {
    $result.updateTransforms.addAll(updateTransforms);
  }
  return $result;
}