Permission constructor

Permission({
  1. PermissionType? type,
  2. int? id,
  3. String? permissionName,
  4. BigInt? threshold,
  5. int? parentId,
  6. List<int>? operations,
  7. List<TronKey>? keys,
})

Factory method to create a new Permission instance with specified parameters.

Implementation

Permission({
  this.type,
  this.id,
  this.permissionName,
  this.threshold,
  this.parentId,
  List<int>? operations,
  List<TronKey>? keys,
})  : operations = BytesUtils.tryToBytes(operations, unmodifiable: true),
      keys = keys == null ? null : List<TronKey>.unmodifiable(keys);