toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UsernameAttributeType.phoneNumber:
      return 'phone_number';
    case UsernameAttributeType.email:
      return 'email';
  }
}