UpdateDocumentRequest constructor

UpdateDocumentRequest({
  1. Document? document,
  2. DocumentMask? updateMask,
  3. DocumentMask? mask,
  4. Precondition? currentDocument,
})

Implementation

factory UpdateDocumentRequest({
  $1.Document? document,
  $3.DocumentMask? updateMask,
  $3.DocumentMask? mask,
  $3.Precondition? currentDocument,
}) {
  final $result = create();
  if (document != null) {
    $result.document = document;
  }
  if (updateMask != null) {
    $result.updateMask = updateMask;
  }
  if (mask != null) {
    $result.mask = mask;
  }
  if (currentDocument != null) {
    $result.currentDocument = currentDocument;
  }
  return $result;
}