execute method

Implementation

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

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