replace method
Returns a new Resource
based on this one, but with some parts replaced.
Implementation
Resource replace(
{ResourceType? type,
String? name,
String? pattern,
bool? create,
bool? delete,
bool? manage,
bool? read,
bool? write,
bool? get,
bool? update,
bool? join}) =>
Resource(type ?? this.type,
name: name ?? this.name,
pattern: pattern ?? this.pattern,
create: create ?? this.create,
delete: delete ?? this.delete,
manage: manage ?? this.manage,
read: read ?? this.read,
write: write ?? this.write,
get: get ?? this.get,
update: update ?? this.update,
join: join ?? this.join);