fromString method

ThirdPartyIdentifierMedium? fromString(
  1. String val
)

Implementation

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