getType method
Returns the corresponding deity type from all deities with type type
Implementation
@override
DeityType getType(String type) {
return _deityTypes.firstWhere(
(deityType) => deityType.getDeityType() == type,
orElse: () => throw DeityTypeNotFoundException(
"DeityType with type $type was not found"),
);
}