toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EndpointTypesElement.push:
      return 'PUSH';
    case EndpointTypesElement.gcm:
      return 'GCM';
    case EndpointTypesElement.apns:
      return 'APNS';
    case EndpointTypesElement.apnsSandbox:
      return 'APNS_SANDBOX';
    case EndpointTypesElement.apnsVoip:
      return 'APNS_VOIP';
    case EndpointTypesElement.apnsVoipSandbox:
      return 'APNS_VOIP_SANDBOX';
    case EndpointTypesElement.adm:
      return 'ADM';
    case EndpointTypesElement.sms:
      return 'SMS';
    case EndpointTypesElement.voice:
      return 'VOICE';
    case EndpointTypesElement.email:
      return 'EMAIL';
    case EndpointTypesElement.baidu:
      return 'BAIDU';
    case EndpointTypesElement.custom:
      return 'CUSTOM';
  }
}