execute method

Implementation

Future<UnitOfWorkResult> execute() async {
  if (unitOfWork.operations.isEmpty) {
    throw ArgumentError(
        "List of operations in unitOfWork can not be null or empty");
  }

  final response =
      await Invoker.post('/transaction/unit-of-work', unitOfWork);
  return UnitOfWorkResult.fromJson(response);
}