cast<T extends TronBaseContract> method

T cast<T extends TronBaseContract>()

Implementation

T cast<T extends TronBaseContract>() {
  if (this is! T) {
    throw const TronPluginException("Incorrect contract casting.");
  }
  return this as T;
}