getType method
Returns the corresponding governmentType from all governmentTypes called name
Implementation
@override
GovernmentType getType(String name) {
return _governmentTypes.firstWhere(
(governmentType) => governmentType.getGovernmentType() == name,
orElse: () => throw GovernmentTypeNotFoundException(
"GovernmentType with name $name was not found"),
);
}