TronRequestAccountPermissionUpdate.fromContract constructor

TronRequestAccountPermissionUpdate.fromContract(
  1. AccountPermissionUpdateContract contract, {
  2. int? permissionId,
})

Implementation

factory TronRequestAccountPermissionUpdate.fromContract(
    AccountPermissionUpdateContract contract,
    {int? permissionId}) {
  return TronRequestAccountPermissionUpdate(
      ownerAddress: contract.ownerAddress,
      actives: contract.actives.map((e) => e.toJson()).toList(),
      owner: contract.owner.toJson(),
      witness: contract.witness?.toJson(),
      permissionId: permissionId,
      visible: true);
}