TronRequestTriggerConstantContract.fromMethod constructor
      
      TronRequestTriggerConstantContract.fromMethod({ 
    
    
- required TronAddress ownerAddress,
- required TronAddress contractAddress,
- required AbiFunctionFragment function,
- required List params,
- String? parameter,
- BigInt? callValue,
- BigInt? callTokenValue,
- BigInt? tokenId,
- bool visible = true,
Implementation
factory TronRequestTriggerConstantContract.fromMethod({
  required TronAddress ownerAddress,
  required TronAddress contractAddress,
  required AbiFunctionFragment function,
  required List<dynamic> params,
  String? parameter,
  BigInt? callValue,
  BigInt? callTokenValue,
  BigInt? tokenId,
  bool visible = true,
}) {
  final rawBytes = function.encode(params, true);
  return TronRequestTriggerConstantContract._(
      ownerAddress: ownerAddress,
      contractAddress: contractAddress,
      callTokenValue: callTokenValue,
      callValue: callValue,
      data: rawBytes.isEmpty ? null : BytesUtils.toHexString(rawBytes),
      fragment: function,
      tokenId: tokenId,
      visible: visible);
}