createSimpleImage method
Future<SimpleImageModel>
createSimpleImage(
- PlatformMediumModel memberMediumModel
)
Implementation
Future<SimpleImageModel> createSimpleImage(
PlatformMediumModel memberMediumModel) async {
var simpleImageModel = SimpleImageModel(
documentID: identifier,
appId: memberMediumModel.appId,
description: null,
image: memberMediumModel,
conditions: StorageConditionsModel(
privilegeLevelRequired: getPrivilegeLevelRequiredSimple()),
);
await simpleImageRepository(appId: memberMediumModel.appId)!
.add(simpleImageModel);
return simpleImageModel;
}