writeStorageObject method
Future<void>
writeStorageObject({
- required Session session,
- String? collection,
- String? key,
- String? value,
- String? version,
- StorageWritePermission? writePermission,
- StorageReadPermission? readPermission,
override
Implementation
@override
Future<void> writeStorageObject({
required model.Session session,
String? collection,
String? key,
String? value,
String? version,
StorageWritePermission? writePermission,
StorageReadPermission? readPermission,
}) async {
_session = session;
await _api.nakamaWriteStorageObjects(
body: ApiWriteStorageObjectsRequest(
objects: [
ApiWriteStorageObject(
collection: collection,
key: key,
value: value,
version: version,
permissionWrite: writePermission?.index,
permissionRead: readPermission?.index,
),
],
),
);
}