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 {
await _client.writeStorageObjects(
WriteStorageObjectsRequest(
objects: [
WriteStorageObject(
collection: collection,
key: key,
value: value,
version: version,
permissionWrite: writePermission != null
? Int32Value(value: writePermission.index)
: null,
permissionRead: readPermission != null
? Int32Value(value: readPermission.index)
: null,
),
],
),
options: _getSessionCallOptions(session),
);
}