byName static method
The value whose mark is name, or null for a name this
version does not know, which is what a file written by a later
version can carry.
Implementation
static DoctorStatus? byName(String name) {
for (final value in values) {
if (value.mark == name) return value;
}
return null;
}