addSavings function

Future addSavings(
  1. Map<String, dynamic> payload
)

Implementation

Future addSavings(Map<String, dynamic> payload) async {
  String id = await getUserID();
  payload.addAll({"userID": id});
  final addIncome =
  await pocketBase.collection("savings").create(body: payload);
  print(addIncome);
}