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