copyWith method

UserPermission copyWith({
  1. bool? deprecatedKey,
  2. String? description,
  3. bool? havePermission,
  4. String? id,
  5. String? key,
  6. String? name,
  7. UserPermissionType? type,
})

Implementation

UserPermission copyWith(
    {bool? deprecatedKey,
    String? description,
    bool? havePermission,
    String? id,
    String? key,
    String? name,
    UserPermissionType? type}) {
  return UserPermission(
    deprecatedKey: deprecatedKey ?? this.deprecatedKey,
    description: description ?? this.description,
    havePermission: havePermission ?? this.havePermission,
    id: id ?? this.id,
    key: key ?? this.key,
    name: name ?? this.name,
    type: type ?? this.type,
  );
}