MCPcopy Create free account
hub / github.com/codecombat/codecombat / serializeMessage

Method serializeMessage

app/models/ChatMessage.js:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4class ChatMessage extends CocoModel {
5 serializeMessage () {
6 const serialized = _.pick(this.get('message'), 'text', 'sender', 'startDate', 'endDate')
7 serialized.messageId = this.get('_id')
8 return serialized
9 }
10}
11
12ChatMessage.className = 'ChatMessage'

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected