toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PhoneNumberType.mobile:
      return 'MOBILE';
    case PhoneNumberType.work:
      return 'WORK';
    case PhoneNumberType.home:
      return 'HOME';
  }
}