approveRequest<T> method

dynamic approveRequest<T>({
  1. required int id,
  2. required T result,
})

Implementation

approveRequest<T>({
  required int id,
  required T result,
}) {
  final response = JsonRpcResponse<T>(
    id: id,
    result: result,
  );
  _encryptAndSend(jsonEncode(response.toJson()));
}