import ISegment from './ISegment' ; export default class TextSegment implements ISegment { public Type = 'text' ; constructor ( public Body ) { } getBodyData ( ) { return { "text" : this . Body } ; } }