onResonse method

  1. @override
CpiGuard? onResonse(
  1. dynamic result
)
override

Converts a dynamic response to the generic type T.

Implementation

@override
CpiGuard? onResonse(result) {
  if (result == null) return null;
  final accountInfo = SolanaAccountInfo.fromJson(result);
  return CpiGuard.fromAccountBytes(accountInfo.toBytesData());
}