upsert<_Model extends _ManagedModel> abstract method
Insert or update a model in all Providers
Optionally, the repository can
be passed to the same provider method with a named argument (repository: this
) to use in
the Adapter.
Implementation
// ignore: always_declare_return_types
upsert<_Model extends _ManagedModel>(_Model model, {Query query});