toValue method
Implementation
String toValue() {
switch (this) {
case ChatItemType.typing:
return 'TYPING';
case ChatItemType.participantJoined:
return 'PARTICIPANT_JOINED';
case ChatItemType.participantLeft:
return 'PARTICIPANT_LEFT';
case ChatItemType.chatEnded:
return 'CHAT_ENDED';
case ChatItemType.transferSucceeded:
return 'TRANSFER_SUCCEEDED';
case ChatItemType.transferFailed:
return 'TRANSFER_FAILED';
case ChatItemType.message:
return 'MESSAGE';
case ChatItemType.event:
return 'EVENT';
case ChatItemType.attachment:
return 'ATTACHMENT';
case ChatItemType.connectionAck:
return 'CONNECTION_ACK';
}
}