fromEntity static method
Implementation
static Future<MemberDashboardModel?> fromEntity(
String documentID, MemberDashboardEntity? entity) async {
if (entity == null) return null;
return MemberDashboardModel(
documentID: documentID,
appId: entity.appId ?? '',
description: entity.description,
updateProfileText: entity.updateProfileText,
retrieveDataText: entity.retrieveDataText,
deleteDataText: entity.deleteDataText,
retrieveDataEmailSubject: entity.retrieveDataEmailSubject,
deleteDataEmailSubject: entity.deleteDataEmailSubject,
deleteDataEmailMessage: entity.deleteDataEmailMessage,
conditions: await StorageConditionsModel.fromEntity(entity.conditions),
);
}