saveRequest method
Implement internal processing when save is executed.
The data to be stored in map
is decoded and passed to DynamicMap.
Keys with Null in the value of map
will be deleted. If all keys are deleted, the document itself will be deleted.
saveを実行した際の内部処理を実装します。
map
に保存するためのデータがDynamicMapにデコードされ渡されます。
map
の値にNullが入っているキーは削除されます。すべてのキーが削除された場合、ドキュメント自体が削除されます。
Implementation
@protected
Future<void> saveRequest(DynamicMap map) async {
return await modelQuery.adapter.saveDocument(databaseQuery, map);
}