Write constructor
Write({
- Document? update,
- String? delete,
- DocumentMask? updateMask,
- Precondition? currentDocument,
- DocumentTransform? transform,
- 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;
}