Upsert Task From RowupsertTaskFromRow(listId, {title, notes, due, taskId}) creates a Google Task, or patches one when taskId is set, and returns the task id so…