copyWith method

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

Implementation

Permission copyWith({
  PermissionType? type,
  int? id,
  String? permissionName,
  BigInt? threshold,
  int? parentId,
  List<int>? operations,
  List<TronKey>? keys,
}) {
  return Permission(
    type: type ?? this.type,
    id: id ?? this.id,
    permissionName: permissionName ?? this.permissionName,
    threshold: threshold ?? this.threshold,
    parentId: parentId ?? this.parentId,
    operations: operations ?? this.operations,
    keys: keys ?? this.keys,
  );
}