TronRequestDelegateResource.fromContract constructor

TronRequestDelegateResource.fromContract(
  1. DelegateResourceContract contract, {
  2. int? permissionId,
})

Implementation

factory TronRequestDelegateResource.fromContract(
    DelegateResourceContract contract,
    {int? permissionId}) {
  return TronRequestDelegateResource(
      ownerAddress: contract.ownerAddress,
      receiverAddress: contract.receiverAddress,
      balance: contract.balance,
      resource: contract.resource?.name,
      visible: true,
      lock: contract.lock,
      lockPeriod: contract.lockPeriod,
      permissionId: permissionId);
}