copyWith method
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,
  );
}