dumpMemberData static method
Future<void>
dumpMemberData(
- MemberModel member,
- String appId,
- String? subject,
- List<MemberCollectionInfo> memberCollectionInfo,
)
Implementation
static Future<void> dumpMemberData(MemberModel member, String appId,
String? subject, List<MemberCollectionInfo> memberCollectionInfo) async {
/*var dumpMemberData =
*/
FirebaseFunctions.instance.httpsCallable('dumpMemberData');
await backendRequestRepository(appId: appId)!.add(BackendRequestModel(
documentID: newRandomKey(),
appId: appId,
name: member.name,
sendTo: member.email,
description: subject,
authorId: member.documentID,
processed: false,
requestType: RequestType.requestEmailData,
collections: _toFunctionFormat(memberCollectionInfo)));
}