save abstract method
If the variable isUpsert = true
, then it calls the upsert method.
Else if the object contains an objectId, the update method is called, which updates an already existing object.
Otherwise, the create method will be called, which creates a new object in the table.
Implementation
Future<T?> save(T entity, {bool isUpsert = false});