TronRequestUndelegateResource.fromContract constructor

TronRequestUndelegateResource.fromContract(
  1. UnDelegateResourceContract contract, {
  2. int? permissionId,
})

Implementation

factory TronRequestUndelegateResource.fromContract(
    UnDelegateResourceContract contract,
    {int? permissionId}) {
  return TronRequestUndelegateResource(
      ownerAddress: contract.ownerAddress,
      receiverAddress: contract.receiverAddress,
      balance: contract.balance,
      resource: contract.resource?.name,
      permissionId: permissionId);
}