callFunction abstract method

Future<Either<List<JSON>, JSON>> callFunction({
  1. required String function,
  2. required String token,
  3. JSON body = const {},
  4. bool redact = false,
})

Makes a request to the given function with the given body and token.

If redact is true, the response will be redacted when logged.

Implementation

Future<Either<List<JSON>, JSON>> callFunction({required String function, required String token, JSON body = const {}, bool redact = false});