TronRequestFreezeBalanceV2.fromContract constructor

TronRequestFreezeBalanceV2.fromContract(
  1. FreezeBalanceV2Contract contract, {
  2. int? permissionId,
  3. bool visible = true,
})

Implementation

factory TronRequestFreezeBalanceV2.fromContract(
    FreezeBalanceV2Contract contract,
    {int? permissionId,
    bool visible = true}) {
  return TronRequestFreezeBalanceV2(
      ownerAddress: contract.ownerAddress,
      frozenBalance: contract.frozenBalance,
      resource: contract.resource?.name,
      permissionId: permissionId,
      visible: visible);
}