Permission constructor
Permission({})
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);