public function Build()
    {
        $obj           = new \stdClass();
        $obj->metadata = $this->metadata;
        $obj->contents = $this->contents;

        return \json_encode($obj);
    }
public function Build()
    {
        $obj           = new \stdClass();
        $obj->metadata = $this->metadata;
        $obj->contents = $this->contents;

        return \json_encode($obj);
    }
public function Build ( ) { $ obj = new \ stdClass ( ) ; $ obj -> metadata = $ this -> metadata ; $ obj -> contents = $ this -> contents ; return \ json_encode ( $ obj ) ; }
Build metadata and content for message

@return string
Build metadata and content for message