export class Message { private _decode ; object ; constructor ( readonly body , readonly contentType , readonly contentEncoding , readonly properties , readonly headers ) { } public decode ( ) { if ( ! this . _decode ) { this . _decode = JSON . parse ( this . body . toString ( "utf-8" ) ) ; } return this . _decode ; } }