TronRequestDelegateResource.fromContract constructor
TronRequestDelegateResource.fromContract(
- DelegateResourceContract contract, {
- 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);
}