fromString method
Implementation
ThirdPartyIdentifierMedium? fromString(String val) {
final override = {
'email': ThirdPartyIdentifierMedium.email,
'msisdn': ThirdPartyIdentifierMedium.msisdn,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}